Details
Diff Detail
- Repository
- rB Blender
- Branch
- temp-curve-gpencil (branched from master)
- Build Status
Buildable 5335 Build 5335: arc lint + arc unit
Event Timeline
| source/blender/editors/object/object_add.c | ||
|---|---|---|
| 2396–2397 | I could use here the ob->loc and remove any reference to cursor location. | |
Indeed you should, it makes no sense to pass the cursor just to transform it afterwards.
As for the API I don't know, copying obmat should work no idea why is not in this case. But poke @Campbell Barton (campbellbarton) on blender.chat, he knows the matrix/copy API inside out way better than me.
Now what bothers me about this (although unrelated) is that when converting it should "delete" the original object.
@Dalai Felinto (dfelinto) I have talked with @Jeroen Bakker (jbakker) and he confirmed the right way to do the things is copying the rotation and scale because the matrix is recalculated using these values. I think we could apply this patch and make a different patch for removing the converted curve, as this is not related to this bug.
I have been doing some tests and it was very easy to remove the converted objects, so we could include both changes in the same patch.
Testing the code, maybe the solution is create one GPencil object as curve and let the user join the objects. In this way all will work as Blender does with all conversions.
- Create one grease pencil object by curve
if the user wants to join all, he can join the curves before conversion or join the strokes after conversion.
I just glanced at your replies, but some comments:
It is better to remove the object as a separate patch (sorry for mixing things up).
As for multiple curves follow what blender does for meshes and curves. (I won't be able to test this today I'm afraid, but feel free to commit to blender2.81 if you think you got it).


