imporve and expose follow curve offset

2.1.1

- added: follow curve show offset property in UI
- added: follow curve show clickable warning if object has non-zero location to reset location
- changed: created follow curve use `fixed offset`
This commit is contained in:
Pullusb
2022-11-15 18:36:21 +01:00
parent ef566c494f
commit bf30254871
4 changed files with 26 additions and 10 deletions
+3 -1
View File
@@ -1053,7 +1053,7 @@ def orentation_track_from_vector(input_vector) -> str:
return orient
def create_follow_path_constraint(ob, curve, follow_curve=False):
def create_follow_path_constraint(ob, curve, follow_curve=False, use_fixed_location=True):
'''return create constraint'''
# # Clear bone follow path constraint
exiting_fp_constraints = [c for c in ob.constraints if c.type == 'FOLLOW_PATH']
@@ -1070,6 +1070,8 @@ def create_follow_path_constraint(ob, curve, follow_curve=False):
const.target = curve
if follow_curve:
const.use_curve_follow = True
if use_fixed_location:
const.use_fixed_location = True
return const
## on_bones: