Skip to content

Commit

Permalink
fix potentional error
Browse files Browse the repository at this point in the history
and avoid to abort generation on 2.93.x
  • Loading branch information
SAM-tak committed Jun 27, 2021
1 parent dd251c4 commit 43bf540
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gamerig/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

bl_info = {
"name": "GameRig",
"version": (1, 3, 0),
"version": (1, 3, 1),
"author": "Osamu Takasugi, (Rigify : Nathan Vegdahl, Lucio Rossi, Ivan Cappiello)",
"blender": (2, 80, 0),
"description": "Character Rigging framework for Game / Realtime content",
Expand Down
7 changes: 6 additions & 1 deletion gamerig/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,12 @@ def append_error(bone, rig, e):
script.use_module = True

# Register UI script
script.as_module().register()
try:
script.as_module().register()
except AttributeError:
pass
else:
operator_scripts += rigt.operator_script(rig_id)

# Create Selection Sets
create_selection_sets(obj, metarig)
Expand Down
2 changes: 1 addition & 1 deletion gamerig/rigs/ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def make_constraints( self, context ):
var.name = 'rig_phy_switch'
var.type = "SINGLE_PROP"
var.targets[0].id = self.obj
var.targets[0].data_path = pb[fk_ctrls[0]].path_from_id() + '["Rig/Phy"]'
var.targets[0].data_path = pb[ctrls[0]].path_from_id() + '["Rig/Phy"]'

drv_modifier = self.obj.animation_data.drivers[-1].modifiers[0]

Expand Down

0 comments on commit 43bf540

Please sign in to comment.