[fix] fix various issues
- add edit mode switch before bm export to prevent potential error - let the default value of ZBuffer in Virtools Material become True - fix the issue that duplicated elements adder do not understand enable option.
This commit is contained in:
@ -55,7 +55,7 @@ class BALLANCE_OT_add_components(bpy.types.Operator):
|
||||
UTILS_functions.add_into_scene_and_move_to_cursor(obj)
|
||||
|
||||
# extra duplication
|
||||
if self.elements_type in self.canDuplicatedElements:
|
||||
if (self.elements_type in self.canDuplicatedElements) and self.elements_duplicated:
|
||||
for i in range(self.elements_dup_times - 1):
|
||||
obj = bpy.data.objects.new(finalObjectName, loadedMesh)
|
||||
UTILS_functions.add_into_scene_and_move_to_cursor(obj)
|
||||
|
Reference in New Issue
Block a user