Fix integers in enumerations #1943 (#1946)

* first draft

* small change
This commit is contained in:
Vukas Pajic
2022-01-04 03:10:42 +01:00
committed by GitHub
parent 2c0df1d4f5
commit 53f6454784
2 changed files with 10 additions and 2 deletions
@@ -148,6 +148,7 @@ class EnablePsetEditing(bpy.types.Operator):
new.is_null = data.get(prop_template.Name, None) is None
new.is_optional = True
new.data_type = data_type
new.enum_data_type = prop_template.PrimaryMeasureType
if data_type == "string":
new.string_value = "" if new.is_null else data[prop_template.Name]