Coder Social home page Coder Social logo

Comments (10)

jbrenneckejones avatar jbrenneckejones commented on September 27, 2024 4

I fixed it by casting the tile selections to integers in sprytile_gui.py, it looks like Blender vector use floats but tile selection is expecting an integer which causes the error.

tilegrid.tile_selection[0] = int(sel_min.x)
tilegrid.tile_selection[1] = int(sel_min.y)
tilegrid.tile_selection[2] = int((sel_max.x - sel_min.x) + 1)
tilegrid.tile_selection[3] = int((sel_max.y - sel_min.y) + 1)

I think the draw_preview error is only because of the initial error as I don't get that error anymore after fixing the first error in sprytile_gui.py.

from sprytile.

FogRyu avatar FogRyu commented on September 27, 2024 1

Just to let peoples know, someone told me on discord that Sprytile don't work on Blender 3.1 yet. So you should be able to use it with Blender 3.0. I'll try that when I have the time.

from sprytile.

ionthedev avatar ionthedev commented on September 27, 2024 1

I just released an updated fork of Sprytile that fixes this issue. https://github.com/ionthedev/ReSprytile

The new versions of Blender need the preview windows' positional data to be converted to an integer.

Working for 3.4.0

from sprytile.

makc avatar makc commented on September 27, 2024 1

lol, at least four* people in this issue fixed the problem independently, completely ignoring each other ) way to collaborate, guys 👍

*one of them did not publish the fork, so the 3rd guy had to re-do it... so like half-independently.

from sprytile.

vigcodes avatar vigcodes commented on September 27, 2024

Yep. Can confirm. Exact same thing happening over here.

from sprytile.

FogRyu avatar FogRyu commented on September 27, 2024

Have the same kind of problem. Impossible to even start to use sprytile. Any idea why? Thanks!

I asked on twitter too, if someone want to answer there : https://twitter.com/FogRyu/status/1519784961666134019?s=20&t=LkC71A5rt9JEImwO2XoFWw

Cauz I'm usually not on Github at all, so I guess i'll miss any answer. ^^

image

Thanks!

from sprytile.

madebyluque avatar madebyluque commented on September 27, 2024

I had this issue so downloaded Blender v2.8.0 and Sprytile is working fine! You can get all Blender versions here.

from sprytile.

LeonStansfield avatar LeonStansfield commented on September 27, 2024

I too had this problem but blender 3.0.1 is completely fine

from sprytile.

mad-wizard avatar mad-wizard commented on September 27, 2024

Happened to me, feels bad! Really can't wait to use it

from sprytile.

TheBricktop avatar TheBricktop commented on September 27, 2024

Can confirm - still has issues in 3.1 and 3.2

from sprytile.

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.