Cleanup: trailing space
This commit is contained in:
parent
a65fb17335
commit
d4fdd05b09
|
@ -827,4 +827,4 @@ def label_multiline(layout, text='', icon='NONE', width=-1):
|
|||
icon = 'NONE'
|
||||
|
||||
def trace():
|
||||
traceback.print_stack()
|
||||
traceback.print_stack()
|
||||
|
|
|
@ -179,7 +179,7 @@ class GreasePencilAddonPrefs(bpy.types.AddonPreferences):
|
|||
|
||||
if not self.use_ctrl and not self.use_alt and not self.use_shift:
|
||||
box.label(text="Choose at least one modifier to combine with click (default: Ctrl+Alt)", icon="ERROR")# INFO
|
||||
|
||||
|
||||
if not all((self.use_ctrl, self.use_alt, self.use_shift)):
|
||||
row = box.row(align = True)
|
||||
snap_key_list = []
|
||||
|
|
|
@ -14,7 +14,7 @@ from gpu_extras.batch import batch_for_shader
|
|||
from gpu_extras.presets import draw_circle_2d
|
||||
|
||||
def step_value(value, step):
|
||||
'''return the step closer to the passed value'''
|
||||
'''return the step closer to the passed value'''
|
||||
abs_angle = abs(value)
|
||||
diff = abs_angle % step
|
||||
lower_step = abs_angle - diff
|
||||
|
@ -93,7 +93,7 @@ class RC_OT_RotateCanvas(bpy.types.Operator):
|
|||
# Calculates the angle between initial and current vectors
|
||||
self.angle = self.vector_initial.angle_signed(self.vector_current)#radian
|
||||
# print (math.degrees(self.angle), self.vector_initial, self.vector_current)
|
||||
|
||||
|
||||
|
||||
## handle snap key
|
||||
snap = False
|
||||
|
@ -216,7 +216,7 @@ class RC_OT_Set_rotation(bpy.types.Operator):
|
|||
return context.space_data.region_3d.view_perspective == 'CAMERA'
|
||||
|
||||
def execute(self, context):
|
||||
cam_ob = context.scene.camera
|
||||
cam_ob = context.scene.camera
|
||||
cam_ob['stored_rotation'] = cam_ob.rotation_euler
|
||||
if not cam_ob.get('_RNA_UI'):
|
||||
cam_ob['_RNA_UI'] = {}
|
||||
|
@ -239,7 +239,7 @@ class RC_OT_Reset_rotation(bpy.types.Operator):
|
|||
return context.space_data.region_3d.view_perspective == 'CAMERA' and context.scene.camera.get('stored_rotation')
|
||||
|
||||
def execute(self, context):
|
||||
cam_ob = context.scene.camera
|
||||
cam_ob = context.scene.camera
|
||||
cam_ob.rotation_euler = cam_ob['stored_rotation']
|
||||
return {'FINISHED'}
|
||||
|
||||
|
|
|
@ -144,7 +144,7 @@ class GPTS_OT_time_scrub(bpy.types.Operator):
|
|||
self.snap_on = False
|
||||
self.mouse = (event.mouse_region_x, event.mouse_region_y)
|
||||
self.init_mouse_x = self.cursor_x = event.mouse_region_x
|
||||
|
||||
|
||||
# self.init_mouse_y = event.mouse_region_y # only to display init frame text
|
||||
self.init_frame = self.new_frame = context.scene.frame_current
|
||||
self.lock_range = context.scene.lock_frame_selection_to_range
|
||||
|
@ -154,7 +154,7 @@ class GPTS_OT_time_scrub(bpy.types.Operator):
|
|||
else:
|
||||
self.f_start = context.scene.frame_start
|
||||
self.f_end = context.scene.frame_end
|
||||
|
||||
|
||||
self.offset = 0
|
||||
self.pos = []
|
||||
|
||||
|
@ -191,7 +191,7 @@ class GPTS_OT_time_scrub(bpy.types.Operator):
|
|||
for frame in layer.frames:
|
||||
if frame.frame_number not in self.pos:
|
||||
self.pos.append(frame.frame_number)
|
||||
|
||||
|
||||
if not ob or not self.pos:
|
||||
# Disable inverted behavior if no frame to snap
|
||||
self.always_snap = False
|
||||
|
@ -207,7 +207,7 @@ class GPTS_OT_time_scrub(bpy.types.Operator):
|
|||
if context.space_data.type == 'VIEW_3D': # and 'GPENCIL' in context.mode
|
||||
self.onion_skin = self.active_space_data.overlay.use_gpencil_onion_skin
|
||||
self.active_space_data.overlay.use_gpencil_onion_skin = False
|
||||
|
||||
|
||||
if ob and ob.type == 'GPENCIL':
|
||||
if ob.data.use_multiedit:
|
||||
self.multi_frame = ob.data.use_multiedit
|
||||
|
@ -335,7 +335,7 @@ class GPTS_OT_time_scrub(bpy.types.Operator):
|
|||
# (after drawing batch so those are still showed)
|
||||
if self.lock_range:
|
||||
self.pos = [i for i in self.pos if self.f_start <= i <= self.f_end]
|
||||
|
||||
|
||||
# convert frame list to array for numpy snap utility
|
||||
self.pos = np.asarray(self.pos)
|
||||
|
||||
|
|
Loading…
Reference in New Issue