Constraint Shrinkwrap does not applies, it reset all changes #94600
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
FBX
Interest
Freestyle
Interest
Geometry Nodes
Interest
glTF
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#94600
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Linux-5.15.12-1-MANJARO-x86_64-with-glibc2.33 64 Bits
Graphics card: Mesa DRI Intel(R) HD Graphics 4600 (HSW GT2) Intel Open Source Technology Center 4.5 (Core Profile) Mesa 21.3.3
Blender Version
Broken: version: 3.1.0 Alpha, branch: makepkg (modified), commit date: 2021-12-31 20:32, hash:
6844304dda
Worked: (newest version of Blender that worked as expected)
Short description of error
Constraint (not modifier) Shrinkwrap does not applies, after click Apply it reset all changes:
Exact steps for others to reproduce the error
Open test file shrinkwrap.blend
Added subscriber: @Wovchick
Added subscribers: @Sergey, @dr.sybren, @lichtwerk
Changed status from 'Needs Triage' to: 'Confirmed'
Can confirm, Apply visual transform on the other hand seems to behave better.
I am trying to follow D5007: Fix #60971 apply visual transform not working /
ddc19819f3
, but its kinda for me hard to read the comments in relation to what was committed, so what is really necessary in the combo ofBKE_constraints_make_evalob
&BKE_constraints_solve
. I assume this should always be fed with evaluated objects, and if I do the following, we indeed get proper results:P2696: T94600_snippet
context: quote from D5007:
However if I look at other places with the combo of
BKE_constraints_make_evalob
&BKE_constraints_solve
, these dont necessarily get evaluated objects/pchans either, so my understanding might be limited here...@Sergey: could you share your wisdom?
CC @dr.sybren
This issue was referenced by
15e4d0f25d
This issue was referenced by
1b1e947162
Hmm... Interested... if the object Cube join to Sphere (CTRL+J) then the constraint apply correctly! it means that somewhere it is already implemented in the code, it remains to find and refer to this method
@lichtwerk The other usages of
BKE_constraints_make_evalob
happen from inside evaluation, so they are intended to operate on exact data they are given (which happened to be evaluated).Not really sure why
BKE_constraint_apply_for_object
needs to access evaluated object (the matrices and such are copied from evaluated to original in theBKE_object_sync_to_original
). Would be really nice to know what is it missing there to have proper behavior without requesting evaluated object.Like I said,
Object
>Apply
>Visual Transform
is also fineWill see if I can continue digging in a bit...
@lichtwerk, actually, constraint might need an evaluated state of target's geometry (so object matrices is not enough for correct behavior). So your proposed patch is actually correct :)
Since the example file does not actually have anything acting on its geometry, should I investigate further why there is something wrong with the matrices? Create a Diff? Commit straight?
Doing some more digging
Changed status from 'Confirmed' to: 'Resolved'