Search Unity

Bug Animation Rigging animation states with Write Defaults unchecked locks Constraints

Discussion in 'Animation Rigging' started by LabOSM, Nov 1, 2020.

  1. LabOSM

    LabOSM

    Joined:
    Sep 5, 2019
    Posts:
    18
    When I setup a Rig and the animator state has Write Defaults unchecked the constraints of the rig are updated only the first time then they are locked in place and I can't move the targets anymore.
    If I check Write Defaults the constraints work as expected.
    Unity version: 2020.1.7f
    upload_2020-11-1_12-56-11.png

    upload_2020-11-1_12-56-47.png
     
    danUnity and eliteforcevn like this.
  2. LabOSM

    LabOSM

    Joined:
    Sep 5, 2019
    Posts:
    18
    Gives the same problem even with Animation Rigging 1.0.3
     
    danUnity likes this.
  3. eliteforcevn

    eliteforcevn

    Joined:
    Oct 25, 2018
    Posts:
    47
    same problem
     
    danUnity and LabOSM like this.
  4. danUnity

    danUnity

    Joined:
    Apr 28, 2015
    Posts:
    229
    I spend quite some time today trying to figure this one out... Definitely still an issue in 2020.1.6f1...

    @simonbz Have this issue been reproduced by Unity?

    Setting Write Defaults to ON is not a good fix for me since I don't want to write the defaults to ON in my case.

    Cheers,
     
  5. simonbz

    simonbz

    Unity Technologies

    Joined:
    Sep 28, 2015
    Posts:
    295
    @danUnity Can you please log something to that effect? We'll have a look.
     
  6. danUnity

    danUnity

    Joined:
    Apr 28, 2015
    Posts:
    229
    @simonbz Just sent a detailed bug report with a simple repo where the issue is easy to reproduce. Thanks!
     
    Jebtor, LabOSM and simonbz like this.
  7. brightskyway

    brightskyway

    Joined:
    Nov 19, 2020
    Posts:
    8
    Same here... Does it have a fix?
     
  8. simonbz

    simonbz

    Unity Technologies

    Joined:
    Sep 28, 2015
    Posts:
    295
    I should have replied here sooner with the issue tracker. Here it is:

    https://issuetracker.unity3d.com/is...hout-write-defaults-enabled-locks-constraints

    Unfortunately, we can't change this behaviour in the Animation system.

    Animation Rigging relies on the animation mask to decide whether or not it should read values from the scene (when values are not animated), or use the animation stream (when values are animated). However, when `writeDefaults` is disabled on a state, the animation system will force the animation mask for all properties, thus, forcing the animation stream into Animation Rigging.