fix for error comparing py-struct members
authorCampbell Barton <ideasman42@gmail.com>
Fri, 13 Jan 2012 11:36:32 +0000 (11:36 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 13 Jan 2012 11:36:32 +0000 (11:36 +0000)
commit0f34ce27cf9c44cb5f10d4033be407c00fee2a09
tree5aec8ab8c56afd193a1a4550f753dcff5d891138
parente06d82227c2d6fc58f3e3d28852f251c1de68997
fix for error comparing py-struct members

if 2 pyrna structs used the same pointer they could incorrectly compare as true, this caused an error in theme saving because an item could match its parent and stop writing (to prevent recursive writing of same data).

eg:
  context.user_preferences.themes[0].user_interface.wcol_regular == context.user_preferences.themes[0].user_interface
source/blender/python/intern/bpy_rna.c