Page MenuHome

Rigify: Generate error with basic.copy_chain
Open, Needs Triage by DeveloperPublic

Description

System Information
Operating system: Windows-7-6.1.7601-SP1 64 Bits
Graphics card: GeForce GTX 770/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.48

Blender Version
Broken: version: 2.82 (sub 1), branch: master, commit date: 2019-11-09 02:09, hash: rB6f1237b2ebda

Short description of error
Generation has thrown an exception: 'Rig' object has no attribute 'rename_deform'


Just a bone chain set to basic.copy_chain. When you click generate, you get an error and this in the console:

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender\2.82\scripts\addons\rigify\ui.py", line 758, in execute
    generate.generate_rig(context, context.object)
  File "C:\Program Files\Blender Foundation\Blender\2.82\scripts\addons\rigify\generate.py", line 521, in generate_rig
    raise e
  File "C:\Program Files\Blender Foundation\Blender\2.82\scripts\addons\rigify\generate.py", line 509, in generate_rig
    Generator(context, metarig).generate()
  File "C:\Program Files\Blender Foundation\Blender\2.82\scripts\addons\rigify\generate.py", line 466, in generate
    self.invoke_finalize()
  File "C:\Program Files\Blender Foundation\Blender\2.82\scripts\addons\rigify\base_generate.py", line 329, in invoke_finalize
    self.__run_object_stage('finalize')
  File "C:\Program Files\Blender Foundation\Blender\2.82\scripts\addons\rigify\base_generate.py", line 242, in __run_object_stage
    rig.rigify_invoke_stage(method_name)
  File "C:\Program Files\Blender Foundation\Blender\2.82\scripts\addons\rigify\utils\metaclass.py", line 145, in rigify_invoke_stage
    getattr(self, stage)()
  File "C:\Program Files\Blender Foundation\Blender\2.82\scripts\addons\rigify\rigs\basic\copy_chain.py", line 105, in finalize
    if self.rename_deform:
AttributeError: 'Rig' object has no attribute 'rename_deform'
Error: Generation has thrown an exception: 'Rig' object has no attribute 'rename_deform'

The issue is that line #50 is self.rename_deforms and line #105 is self.rename_deform

Changing either works but I assume it's preferable to change #105, since while it uses the same name as basic.super_copy, make_deforms var is plural because it affects multiple bones.

Details

Type
Bug