bugfix [#25290] Align on text gives a traceback
[#25284] Traceback error on "System Info" script - Align was only working on mesh objects, now operate on all objects, missing boundbox's are treated as single points. - obj.bound_box was returning all nan's for object types with no boundbox. - ENUM_FLAG type enums were showing no text when displayed in operator redo panel.
This commit is contained in:
@@ -163,7 +163,14 @@ int uiDefAutoButsRNA(uiLayout *layout, PointerRNA *ptr, int (*check_prop)(Proper
|
||||
col= NULL;
|
||||
}
|
||||
|
||||
name= ""; /* name is shown above, empty name for button below */
|
||||
/* may meed to add more cases here.
|
||||
* don't override enum flag names */
|
||||
if(flag & PROP_ENUM_FLAG) {
|
||||
name= NULL;
|
||||
}
|
||||
else {
|
||||
name= ""; /* name is shown above, empty name for button below */
|
||||
}
|
||||
}
|
||||
else {
|
||||
col= layout;
|
||||
|
||||
Reference in New Issue
Block a user