Fix #105278: IDProperty UI missing library overridable toggle
The toggle (for anything but float and int types) was swallowed inbf948b2cef. Also seemsef68a37e5ddiscarded `property_overridable_library_set` for bools. Now treat the overridable toggle as a general property for all property types. Pull Request #105370
This commit is contained in:
@@ -94,8 +94,7 @@ def rna_idprop_ui_create(
|
|||||||
description=description,
|
description=description,
|
||||||
default=default,
|
default=default,
|
||||||
)
|
)
|
||||||
return
|
else:
|
||||||
|
|
||||||
if soft_min is None:
|
if soft_min is None:
|
||||||
soft_min = min
|
soft_min = min
|
||||||
if soft_max is None:
|
if soft_max is None:
|
||||||
|
|||||||
@@ -1894,7 +1894,6 @@ class WM_OT_properties_edit(Operator):
|
|||||||
col.prop(self, "max_float")
|
col.prop(self, "max_float")
|
||||||
|
|
||||||
col = layout.column()
|
col = layout.column()
|
||||||
col.prop(self, "is_overridable_library")
|
|
||||||
col.prop(self, "use_soft_limits")
|
col.prop(self, "use_soft_limits")
|
||||||
|
|
||||||
col = layout.column(align=True)
|
col = layout.column(align=True)
|
||||||
@@ -1923,7 +1922,6 @@ class WM_OT_properties_edit(Operator):
|
|||||||
col.prop(self, "max_int")
|
col.prop(self, "max_int")
|
||||||
|
|
||||||
col = layout.column()
|
col = layout.column()
|
||||||
col.prop(self, "is_overridable_library")
|
|
||||||
col.prop(self, "use_soft_limits")
|
col.prop(self, "use_soft_limits")
|
||||||
|
|
||||||
col = layout.column(align=True)
|
col = layout.column(align=True)
|
||||||
@@ -1949,6 +1947,8 @@ class WM_OT_properties_edit(Operator):
|
|||||||
else:
|
else:
|
||||||
layout.prop(self, "description")
|
layout.prop(self, "description")
|
||||||
|
|
||||||
|
layout.prop(self, "is_overridable_library")
|
||||||
|
|
||||||
|
|
||||||
# Edit the value of a custom property with the given name on the RNA struct at the given data path.
|
# Edit the value of a custom property with the given name on the RNA struct at the given data path.
|
||||||
# For supported types, this simply acts as a convenient way to create a popup for a specific property
|
# For supported types, this simply acts as a convenient way to create a popup for a specific property
|
||||||
|
|||||||
Reference in New Issue
Block a user