[CG Pipeline] Refactor

This commit is contained in:
brothermechanic 2023-11-13 13:07:33 +00:00 committed by Igor Brylyov
parent 6538f70d54
commit b3612d8655
23 changed files with 634 additions and 645 deletions

View file

@ -20,7 +20,6 @@ import bpy
from mathutils import Vector
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
def fc_placement(bobj, fc_location, fc_rotation, scene_scale):
@ -30,12 +29,12 @@ def fc_placement(bobj, fc_location, fc_rotation, scene_scale):
bobj.rotation_mode = 'QUATERNION'
# FreeCAD Quaternion is XYZW while Blender is WXYZ
fc_rotation.insert(0, fc_rotation.pop(3))
bobj.rotation_quaternion = (fc_rotation)
bobj.rotation_quaternion = fc_rotation
bobj.rotation_mode = m
return bobj
def hierarchy(bobj, hierarchy, scene_scale):
def hierarchy_list(bobj, hierarchy, scene_scale):
''' Blender object, dict, Blender World Scale factor. '''
hierarchy_objs = []
for parent_name in hierarchy.keys():