Skip to content

Commit

Permalink
Merge pull request #156 from alessandro-zomparelli/b401-dev
Browse files Browse the repository at this point in the history
Updated for compatibility with Blender 4.0.1
  • Loading branch information
alessandro-zomparelli committed Nov 25, 2023
2 parents 473e56d + 545c23c commit ebbc44b
Show file tree
Hide file tree
Showing 9 changed files with 660 additions and 846 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ https://www.co-de-it.com/code/blender-tissue

Tissue is already shipped with both Blender. However I recommend to update the default version downloading manually the most recent one, for more updated features and more stability.

### Blender 3.3
### Blender 4.0.1

Tissue v0.3.54 for Blender 3.3.1 (latest stable release): https://github.com/alessandro-zomparelli/tissue/releases/tag/v0-3-54
Tissue v0.3.61 for Blender 4.0.1 (latest stable version): https://github.com/alessandro-zomparelli/tissue

Development branch (usually the most updated version): https://github.com/alessandro-zomparelli/tissue/tree/b320-dev
Current development branch (usually the most updated version): https://github.com/alessandro-zomparelli/tissue/tree/b401-dev


### Installation:
Expand All @@ -33,7 +33,7 @@ If you like my work and you want to help me, please consider to support me on **

[![Patreon](http://alessandrozomparelli.com/wp-content/uploads/2020/04/patreon-transparent-vector-small.png)](https://www.patreon.com/alessandrozomparelli)

A special thanks to all my patrons, in particular to my active **Tissue Supporters**: *Scott Shorter*, *Avi Briant*, *Beili Wang*, *Chris Costanzi*, *Justin Davis*, *MutableHurdle*, *Stefano Giovacchini*, *Tomek Zamojski*, *Chengyuan Wei*, *Kenned Doll*.
A special thanks to all my patrons, in particular to my active **Tissue Supporters**: *Scott Shorter*, *MutableHurdle*, *K*, *Happy Person*, *Dream H*, *Chris Costanzi*, *Chengyuan Wei*, *Avi Bryant*.

If that is too much for you or you are just passing by, then you can also **buy me a coffee**:

Expand Down
4 changes: 2 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
bl_info = {
"name": "Tissue",
"author": "Alessandro Zomparelli",
"version": (0, 3, 58),
"blender": (3, 4, 1),
"version": (0, 3, 61),
"blender": (4, 0, 1),
"location": "",
"description": "Tools for Computational Design",
"warning": "",
Expand Down
8 changes: 4 additions & 4 deletions contour_curves.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ class tissue_contour_curves_prop(PropertyGroup):
update = anim_contour_curves
)
range_value : FloatProperty(
name="Range Values", default=1, #soft_min=0, soft_max=1,
name="Range Values", default=100, #soft_min=0, soft_max=1,
description="Maximum range of contouring values",
update = anim_contour_curves
)
n_curves : IntProperty(
name="Curves", default=50, soft_min=1, soft_max=200,
name="Curves", default=1000, soft_min=1, soft_max=200,
description="Number of Contour Curves",
update = anim_contour_curves
)
Expand Down Expand Up @@ -299,10 +299,10 @@ class tissue_weight_contour_curves_pattern(Operator):
name="Offset Value", default=0., #soft_min=0, soft_max=1,
description="Offset contouring values")
range_value : FloatProperty(
name="Range Values", default=1, #soft_min=0, soft_max=1,
name="Range Values", default=100, #soft_min=0, soft_max=1,
description="Maximum range of contouring values")
n_curves : IntProperty(
name="Curves", default=50, soft_min=1, soft_max=200,
name="Curves", default=1000, soft_min=1, soft_max=200,
description="Number of Contour Curves")
min_rad = 1
max_rad = 1
Expand Down
9 changes: 6 additions & 3 deletions lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def execute(self, context):
grid_mesh = temp_grid_obj.data
for v in grid_mesh.vertices:
v.co = grid_obj.matrix_world @ v.co
grid_mesh.calc_normals()
#grid_mesh.calc_normals()

if len(grid_mesh.polygons) > 64 * 64:
bpy.data.objects.remove(temp_grid_obj)
Expand Down Expand Up @@ -391,8 +391,11 @@ def execute(self, context):

# set as parent
if self.set_parent:
override = {'active_object': obj, 'selected_objects' : [lattice,obj]}
bpy.ops.object.parent_set(override, type='OBJECT', keep_transform=False)
override = context.copy()
override['active_object'] = obj
override['selected_objects'] = [lattice,obj]
with context.temp_override(**override):
bpy.ops.object.parent_set(type='OBJECT', keep_transform=False)

# reading grid structure
verts_grid, edges_grid, faces_grid = grid_from_mesh(
Expand Down

0 comments on commit ebbc44b

Please sign in to comment.