Mesh: Update addons for auto smooth removal #104609

Merged
Hans Goudey merged 10 commits from HooglyBoogly/blender-addons:refactor-mesh-corner-normals-lazy into main 2023-10-20 16:53:48 +02:00
Member
See https://projects.blender.org/blender/blender/pulls/108014
Hans Goudey added 1 commit 2023-05-18 22:14:00 +02:00

@HooglyBoogly
I just added an animation update for io_scene_3ds
It also contains the morph smooth chunk wich uses auto smooth
#104613

@HooglyBoogly I just added an animation update for [io_scene_3ds](https://projects.blender.org/blender/blender-addons/src/branch/main/io_scene_3ds) It also contains the morph smooth chunk wich uses auto smooth #104613
Sebastian Sille added 1 commit 2023-05-20 14:32:49 +02:00
Hans Goudey added 1 commit 2023-08-30 05:57:42 +02:00
Hans Goudey added 1 commit 2023-09-28 23:35:56 +02:00
Hans Goudey added 1 commit 2023-09-29 03:07:44 +02:00
Hans Goudey added 1 commit 2023-09-29 18:27:22 +02:00
Hans Goudey added 1 commit 2023-09-29 18:32:17 +02:00
Hans Goudey added 2 commits 2023-10-19 17:45:54 +02:00
Hans Goudey added 1 commit 2023-10-20 15:59:44 +02:00
Hans Goudey merged commit b1fbf73a08 into main 2023-10-20 16:53:48 +02:00
Hans Goudey deleted branch refactor-mesh-corner-normals-lazy 2023-10-20 16:53:48 +02:00
Member

@HooglyBoogly This commit broke tests on glTF I/O. Investigation in progress to know if test cases must be updated or if we need to fix glTF I/O addon

@HooglyBoogly This commit broke tests on glTF I/O. Investigation in progress to know if test cases must be updated or if we need to fix glTF I/O addon
Author
Member

Ah, sorry about that. Please let me know here or in chat how I can help.

Ah, sorry about that. Please let me know here or in chat how I can help.
Member

@HooglyBoogly

First thing, seems setting use_smooth attribute is broken now.

On default cube, set it to smooth by hand (right click => smooth shading).

Then run this:

import bpy
import numpy as np

mesh = bpy.context.object.data

num_polys = len(mesh.polygons)
test = np.empty(num_polys, dtype=bool)

test = [False] * num_polys
mesh.polygons.foreach_set('use_smooth', test)
mesh.update()

On 4.0, cube is back to flat
On 4.1, cube stays smooth

@HooglyBoogly First thing, seems setting use_smooth attribute is broken now. On default cube, set it to smooth by hand (right click => smooth shading). Then run this: ``` import bpy import numpy as np mesh = bpy.context.object.data num_polys = len(mesh.polygons) test = np.empty(num_polys, dtype=bool) test = [False] * num_polys mesh.polygons.foreach_set('use_smooth', test) mesh.update() ``` On 4.0, cube is back to flat On 4.1, cube stays smooth
Author
Member

Thanks, I fixed that here: b4e6ef4279

Thanks, I fixed that here: https://projects.blender.org/blender/blender/commit/b4e6ef42798e45775bdd39671b65e79283d24f0d
Member

@HooglyBoogly This seems to be fixed, thanks!
Waiting tomorrow's build to run CI tests online, but seems this is ok with my local build from main branch.

@HooglyBoogly This seems to be fixed, thanks! Waiting tomorrow's build to run CI tests online, but seems this is ok with my local build from main branch.

@HooglyBoogly The 3ds importer also raised a TypeError, I attached a Traceback Screenshot
I guess it has to be child.data.set_sharp_from_angle(angle=smooth_angle) and not child.data.set_sharp_from_angle(smooth_angle)

@HooglyBoogly The 3ds importer also raised a TypeError, I attached a Traceback Screenshot I guess it has to be `child.data.set_sharp_from_angle(angle=smooth_angle)` and not `child.data.set_sharp_from_angle(smooth_angle)`
Sign in to join this conversation.
No reviewers
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#104609
No description provided.