RNA API Rename
'create' was used as prefix and suffix, change dupli list functions to use as suffix, this matches obj.animation_data_create() & obj.animation_data_clear(). obj.create_dupli_list() --> obj.dupli_list_create() obj.free_dupli_list() --> obj.dupli_list_clear() Don't use 'create' for object to mesh function since other uses of this are for createing data which stays attached, instead use mathutils style naming convention. obj.create_mesh() --> obj.to_mesh()
This commit is contained in:
@@ -91,14 +91,14 @@ def create_derived_objects(scene, ob):
|
||||
return False, None
|
||||
|
||||
if ob.dupli_type != 'NONE':
|
||||
ob.create_dupli_list(scene)
|
||||
ob.dupli_list_create(scene)
|
||||
return True, [(dob.object, dob.matrix) for dob in ob.dupli_list]
|
||||
else:
|
||||
return False, [(ob, ob.matrix_world)]
|
||||
|
||||
|
||||
def free_derived_objects(ob):
|
||||
ob.free_dupli_list()
|
||||
ob.dupli_list_clear()
|
||||
|
||||
|
||||
def unpack_list(list_of_tuples):
|
||||
|
||||
Reference in New Issue
Block a user