Re: [K3d-development] Obj import object, scale rounds off to 2 decimal places
Brought to you by:
barche
From: Timothy M. S. <ts...@k-...> - 2005-02-28 21:24:33
|
Daniel S. Matthews wrote: > On Mon, 28 Feb 2005 10:46:32 -0800, Timothy M. Shead <ts...@k-...> > wrote: > >> Daniel S. Matthews wrote: >> >>> Testing obj import under 0.5.0.18 >>> Import object with "real word" scale, need to resize to do a quick >>> render >>> in scale section of object properties I enter 0.001, but value gets >>> rounded off to 0.00 >> >> >> It's only the display that gets rounded, the data is stored correctly >> - you could verify this using scripting or by saving your document >> and checking the XML. As it stands today, plugin authors get to >> specify a "preferred" number of decimal places to display for a >> property, and we use that number. The problem is that always >> displaying too few decimal places is just as bad as always displaying >> too many, suggestions welcome. >> > Change the color of the the text to show it is rounded off and display > full value when text area is hovered over? > I think rounding was in the var not the display because my object got an > x dim of zero in the 3d viewport. If this is true, it's a bug, I'll check this evening. On the other hand, if you were to tab-off-of the rounded version, it would be expected behavior, since the spin button can't know whether you were entering the value 0 or just tabbing through the current value. I note that gtkmm 2.6 adds ellipsizing of text, that may be the long-term solution - just display data without rounding and ellipsize when it won't fit. Cheers, Tim |