Bugfix #23576
Logic Window: Actuator type options in menu didn't show special options for Armature or Mesh when 'show selected' was used. Dalai proposed a nice new RNA feature for inherited types, but with only two exceptions handled, it was easy to code this check.
This commit is contained in:
parent
c7c034fedb
commit
c19dd6a7b2
@ -360,7 +360,9 @@ EnumPropertyItem *rna_Actuator_type_itemf(bContext *C, PointerRNA *ptr, int *fre
|
||||
Object *ob= NULL;
|
||||
int totitem= 0;
|
||||
|
||||
if (ptr->type == &RNA_Actuator) {
|
||||
/* hardcoded exceptions, for these cases code below needs to find the id.data */
|
||||
/* otherwise buttons never give all options for selected */
|
||||
if (ptr->type==&RNA_Actuator || ptr->type==&RNA_ArmatureActuator || ptr->type==RNA_ShapeActionActuator) {
|
||||
ob = (Object *)ptr->id.data;
|
||||
} else {
|
||||
/* can't use ob from ptr->id.data because that enum is also used by operators */
|
||||
|
Loading…
Reference in New Issue
Block a user