Duplicate entries in bpy.types #29666

Closed
opened 2011-12-20 10:48:06 +01:00 by Lawrence D'Oliveiro · 6 comments

%%%Enumerating the contents of bpy.types, I see a lot of duplicate entries, e.g. ANIM_OT_channels_setting_toggle, BRUSH_OT_active_index_set, CAMERA_OT_preset_add and over 100 others. This is with SVN revision 42744. I attach the test script I ran to discover these.%%%

%%%Enumerating the contents of bpy.types, I see a lot of duplicate entries, e.g. ANIM_OT_channels_setting_toggle, BRUSH_OT_active_index_set, CAMERA_OT_preset_add and over 100 others. This is with SVN revision 42744. I attach the test script I ran to discover these.%%%

Changed status to: 'Open'

Changed status to: 'Open'

%%%Campbell, can you please check this report?%%%

%%%Campbell, can you please check this report?%%%

%%%Thought you’d be interested to know, I ran another script, looking for duplicates in other bpy.* modules, and found none. They are only in bpy.types.%%%

%%%Thought you’d be interested to know, I ran another script, looking for duplicates in other bpy.* modules, and found none. They are only in bpy.types.%%%

%%%Ack! I ran into that bug some times ago, as it was preventing the i18n rna script to access the py UI messages…

The problem is that, for py scripts, both OperatorType and OperatorProperties RNA subclasses are registered under the same name by rna_Operator_register.

I made a small patch I’m using to generate i18n messages (attached), but it is not finished – I could not find a way (i.e. where) to release the string I allocate… Anyway, RNA is already quite complex, so when you add the py binding layer, arg…%%%

%%%Ack! I ran into that bug some times ago, as it was preventing the i18n rna script to access the py UI messages… The problem is that, for py scripts, both OperatorType and OperatorProperties RNA subclasses are registered under the same name by rna_Operator_register. I made a small patch I’m using to generate i18n messages (attached), but it is not finished – I could not find a way (i.e. where) to release the string I allocate… Anyway, RNA is already quite complex, so when you add the py binding layer, arg…%%%

%%%fixed r43835.%%%

%%%fixed r43835.%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#29666
No description provided.