Page MenuHome

Curves: Convert legacy curves to new curves object.
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on May 6 2022, 11:46 AM.

Details

Summary

This extends the existing object type conversion operator.

Currently, it is limited to converting to curves when the evaluated source mesh actually has curves. This might not be the case when it is converted to a mesh by some modifier during evaluation.

Diff Detail

Repository
rB Blender
Branch
legacy-to-curves-operator (branched from master)
Build Status
Buildable 21997
Build 21997: arc lint + arc unit

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.May 6 2022, 11:46 AM
Jacques Lucke (JacquesLucke) created this revision.
Jacques Lucke (JacquesLucke) retitled this revision from Curves: Convert legacy curves to new curves object.o to Curves: Convert legacy curves to new curves object..May 6 2022, 11:48 AM
Jacques Lucke (JacquesLucke) edited the summary of this revision. (Show Details)

Worked well in my simple test, and the code looks good.

source/blender/editors/object/object_add.cc
2765

Maybe "Curves from evaluated curve data" would make the way it works a bit clearer?

3109

What about Object '%s' has no evaluated curves data?

This revision is now accepted and ready to land.May 6 2022, 1:56 PM
Jacques Lucke (JacquesLucke) edited the summary of this revision. (Show Details)
  • Merge branch 'master' into legacy-to-curves-operator
  • improve strings
  • hide conversion to curves when experimental feature is disabled