Improve Add Advanced Objects -> Easy Lattice #53477

Closed
opened 2017-12-05 23:10:04 +01:00 by Jesse Yurkovich · 9 comments

The attached patch does the following:
- Removes broken/unused code that would attempt to delete already added easy-lattices
- Allows the creation of multiple easy-lattices in the same scene AND for the same object (incl. support for multiple vertex groups)
- Add scale factor so the user can create lattices smaller/larger than the target mesh
- Add Catmull-Rom option
- Code style (variable naming, UI naming, return values, etc.)

The code that attempted to delete lattices added by the add-on did not really work, especially in the cases where the user has changed the name of the modifier etc. Additionally, all that code prevented the usage of the add-on more than once in a given scene and more than once on a given object. These changes addresses those problems and cleans up along the way.

It also adds another property, the scale factor, allowing the user to create a lattice that is smaller or larger than the target object.

Note: I couldn't find a way to actually create a git PR here. Is attaching a patch file the preferred mechanism?

easylattice.patch

The attached patch does the following: - Removes broken/unused code that would attempt to delete already added easy-lattices - Allows the creation of multiple easy-lattices in the same scene AND for the same object (incl. support for multiple vertex groups) - Add scale factor so the user can create lattices smaller/larger than the target mesh - Add Catmull-Rom option - Code style (variable naming, UI naming, return values, etc.) The code that attempted to delete lattices added by the add-on did not really work, especially in the cases where the user has changed the name of the modifier etc. Additionally, all that code prevented the usage of the add-on more than once in a given scene and more than once on a given object. These changes addresses those problems and cleans up along the way. It also adds another property, the scale factor, allowing the user to create a lattice that is smaller or larger than the target object. Note: I couldn't find a way to actually create a git PR here. Is attaching a patch file the preferred mechanism? [easylattice.patch](https://archive.blender.org/developer/F1311663/easylattice.patch)
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @deadpin

Added subscriber: @deadpin
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Member

the preferred way is to post the diff here, https://developer.blender.org/differential/diff/create/ so we can easily see the changes.

the preferred way is to post the diff here, https://developer.blender.org/differential/diff/create/ so we can easily see the changes.
Author
Member

Added a diff here: https://developer.blender.org/differential/diff/9645/

Is that fine or should we close this one and go through the above process to also create the revision task along with it?

Added a diff here: https://developer.blender.org/differential/diff/9645/ Is that fine or should we close this one and go through the above process to also create the revision task along with it?

Added subscriber: @VukGardasevic

Added subscriber: @VukGardasevic

Yes, you can continue with the process, to create the Differential revision.

Yes, you can continue with the process, to create the Differential revision.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Vuk Gardašević self-assigned this 2017-12-06 06:44:33 +01:00

Thanks :)
The Differential revision was created in D2943
No need to keep the task.

Thanks :) The Differential revision was created in [D2943](https://archive.blender.org/developer/D2943) No need to keep the task.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#53477
No description provided.