Skip to content

Blender 4.4 update issue correction #43

Description

@HTPCall

For somene who can't use the addon for blender 4.4 Go to Blender Addon Location find Abnormal and change the "operator_modal.py"'s 220 lines

from ::


        # INITIALIZE OBJECT DATA LISTS
        self._object = context.active_object
        self._object_name = context.active_object.name
        self._object_pointer = context.active_object.as_pointer()

        self._object_bm = ob_bm
        self._object_bvh = ob_bvh
        self._object_kd = ob_kd

        if bpy.app.version[0] <= 4 and bpy.app.version[1] < 1:
            if self._object.data.use_auto_smooth == False:
                self._object.data.use_auto_smooth = True
                self._object.data.auto_smooth_angle = 180

        if bpy.app.version[0] >= 4:
            shader_2d_str = 'UNIFORM_COLOR'
            shader_3d_str = 'UNIFORM_COLOR'
        else:
            shader_2d_str = '2D_UNIFORM_COLOR'
            shader_3d_str = '3D_UNIFORM_COLOR'

TO

       # INITIALIZE OBJECT DATA LISTS
        self._object = context.active_object
        self._object_name = context.active_object.name
        self._object_pointer = context.active_object.as_pointer()

        self._object_bm = ob_bm
        self._object_bvh = ob_bvh
        self._object_kd = ob_kd

        if bpy.app.version[0] <= 4 and bpy.app.version[1] < 1:
            # OLD VERSIONS USE USE_AUTO_SMOOTH, "use_auto_smooth" BUT WE WILL USE INSTEAD.
            if not self._object.data.use_auto_smooth:
                self._object.data.use_auto_smooth = True
                self._object.data.auto_smooth_angle = 180
        else:
            import math
            mod = self._object.modifiers.get("EdgeSplit")
            if not mod:
                mod = self._object.modifiers.new(name="EdgeSplit", type='EDGE_SPLIT')
                mod.split_angle = math.radians(180)
                mod.use_edge_angle = True

        if bpy.app.version[0] >= 4:
            shader_2d_str = 'UNIFORM_COLOR'
            shader_3d_str = 'UNIFORM_COLOR'
        else:
            shader_2d_str = '2D_UNIFORM_COLOR'
            shader_3d_str = '3D_UNIFORM_COLOR'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions