Giter Site home page Giter Site logo

Comments (4)

MightyBOBcnc avatar MightyBOBcnc commented on August 15, 2024 2

Checking in 4.0 shows that functionally the tool works (merging still works as expected) but yes the assisting lines and dots are not rendering. I thought the gpu module was going to be stable after the changes needed for #36 but it looks like they changed something again. This error pops up in the console while running the merge tool:

Traceback (most recent call last):
  File "C:\Portable\blender-4.0.0-windows-x64\4.0\scripts\addons\mesh_merge_tool\__init__.py", line 250, in draw_callback_3d
    shader = gpu.shader.from_builtin('3D_UNIFORM_COLOR')
ValueError: expected a string in ('FLAT_COLOR', 'IMAGE', 'IMAGE_COLOR', 'SMOOTH_COLOR', 'UNIFORM_COLOR', 'POLYLINE_FLAT_COLOR', 'POLYLINE_SMOOTH_COLOR', 'POLYLINE_UNIFORM_COLOR'), got '3D_UNIFORM_COLOR'

Probably an easy fix and I just need to make sure that any fix for 4.0 keeps working in older versions of Blender.

from scripts.

MightyBOBcnc avatar MightyBOBcnc commented on August 15, 2024 1

Give this a shot:

https://github.com/Stromberg90/Scripts/blob/master/Blender/mesh_merge_tool.zip

from scripts.

kloworks avatar kloworks commented on August 15, 2024 1

all good now, Thank you so much

from scripts.

MightyBOBcnc avatar MightyBOBcnc commented on August 15, 2024

This appears to be the culprit: https://projects.blender.org/blender/blender/commit/9a8fd2f1ddb491892297315a4f76b6ed2b0c1b94

The fix may be as simple as changing line 250 from 3D_UNIFORM_COLOR to UNIFORM_COLOR and to test backward compatibility.

Reference: https://projects.blender.org/blender/blender/issues/114359

-Edit: Had to add a small conditional check as versions less than 3.4 don't support UNIFORM_COLOR but otherwise it was indeed a 1-line fix.

from scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.