Comments (10)
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.
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.
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.
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.
Yep. Can confirm. Exact same thing happening over here.
from sprytile.
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. ^^
Thanks!
from sprytile.
I had this issue so downloaded Blender v2.8.0 and Sprytile is working fine! You can get all Blender versions here.
from sprytile.
I too had this problem but blender 3.0.1 is completely fine
from sprytile.
Happened to me, feels bad! Really can't wait to use it
from sprytile.
Can confirm - still has issues in 3.1 and 3.2
from sprytile.
Related Issues (20)
- Crash when using Blender 2.8 function Decimate Geometry on Sprytiled surfaces
- Crash when placing tile. Tiles won't load on restart. HOT 1
- the addon is not available in Blender 2.91 HOT 2
- crash on 2.90.1
- Crashing on 2.92 HOT 1
- No visible difference between regular and inverted faces (toggle suggestion?)
- Cannot Delete Loaded TileSets (aka Material) HOT 2
- v0.5.10 crashes on Blender 2.83.13
- Sprytile palette disappears after reopening file without restarting blender
- Sprytile not showing on sidebar
- Crashing on 3.0 HOT 2
- camera controls not working while using Sprytile tools
- Can't place tiles, get error message "MATERIAL" not found in ('WIREFRAME', 'SOLID', 'RENDERED') when I click anywhere HOT 1
- I don't get to use it, blender 3.3.0 HOT 4
- Error when clicking in viewport HOT 1
- AttributeError: 'VIEW3D_OP_SprytileModalTool' object has no attribute 'draw_preview' HOT 7
- Palette doesn't move then disappears HOT 2
- How much to update this to blender 3.x? HOT 2
- Pallete HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sprytile.