Comments (5)
Originally by [email protected] on 2006-05-16 16:39:01 -0400
Attachment added: minifig-missingleg.png
(35.3 KiB)
A one legged minifig
from test.
Originally by [email protected] on 2006-05-16 16:52:00 -0400
I have taken the latest trunk version out of svn - and can confirm that both the missing leg, and crash behaviour can still be reproduced. I will take a look at the source for it, and see if I can see anything obvious.
from test.
Originally by [email protected] on 2006-05-18 17:54:15 -0400
Leo, I have also made some changes related to this bug, which I was about to commit - which may not have solved the root cause, but made the draw code more resilient by only attempting to redraw if the Leg peices are not set to null. This did prevent it crashing.
I have updated my local SVN, and your changes have merged with mine with no conflicts, and compiled. Do you concur that it would be wise to have the defensive test in anyway?
On my version, before your changes, certain leg selections would result in a blank leg.
from test.
Originally by leocad.gerf.org on 2006-05-18 19:27:21 -0400
The problem was that it was trying to find the pieces based on the description from the drop down list, which I shortened from the piece description to take less screen space but in some cases the leg names would conflict with torso names and I think that caused it to render a torso instead of a leg but it wasn't visible on the small window.
I've just added some more checks to make sure there's a valid leg piece before trying to access it, but if you have more safety checks feel free to add them, it doesn't hurt to be safe.
Do you still see any crashes or missing legs with my fix?
from test.
Originally by [email protected] on 2006-05-27 12:54:44 -0400
Hi Leo,
Sorry I hadnt gotten back quicker.
Didnt see the crashes, and I see (after doing an update and getting conflicts) that you have similarly now made the safety check changes. I did actually use
if(m_Info[LC_MFW_LEFT_LEG] != NULL)
over
if(m_Info[LC_MFW_LEFT_LEG])
just out of defensive coding habits, but thats a good safety check to have.
Danny
from test.
Related Issues (20)
- empty
- empty
- empty
- empty
- Precision of lcMatrix44 is lost after 90 degree rotations HOT 6
- Replace String with QString HOT 1
- Crash when hitting delete key HOT 3
- Convert to use QOpenGLFunctions for opengl access HOT 1
- Make scrollwheel zoom center on the mouse location, not the view center HOT 1
- Add support for line type 5
- Document procedure to produce windows installer HOT 1
- Models in the same directory as the current file should be in the parts library
- Provide better tooling for adjusting steps
- alignment error
- Please provide support for printing/exporting a part list
- leocad will not load HOT 1
- Can't open, keeps crashing :( HOT 2
- Better pov-ray integration
- Update part categories, add "other" category for things not in an existing category
- Merge commits from https://github.com/eric-wieser/leocad/commits/master 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 test.