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:
2010-12-19 07:05:29 +00:00
parent 096369e89d
commit c26cc0afa1
6 changed files with 171 additions and 144 deletions

View File

@@ -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;