Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-10-06remove some unused code and reduced the scope if some vars (no functional ↵Campbell Barton
change).
2010-09-22patch [#23796] Full support for unit buttons: area, volume, mass, velocity ↵Campbell Barton
and acceleration from Lorenzo Tozzi (oni_niubbo), suppress_only_shown.diff
2010-09-22patch [#23796] Full support for unit buttons: area, volume, mass, velocity ↵Campbell Barton
and acceleration from Lorenzo Tozzi (oni_niubbo), multiple patches: better_split.diff
2010-09-22patch [#23796] Full support for unit buttons: area, volume, mass, velocity ↵Campbell Barton
and acceleration by Lorenzo Tozzi (oni_niubbo)
2010-09-16- bone roll now in degrees not radians.Campbell Barton
- rna buttons with units set now use the units base value for snapping. - bone head/tail radius could be set negative. matt: removed a check in ui_is_but_unit() which made angle buttons return false, what was this for?
2010-09-15patch [#23758] Better handling of UTF chars in UNITS fields (lengths, ↵Campbell Barton
angles, etc.) from Lorenzo Tozzi (oni_niubbo) with minor edits. --- from the tracker The present situation is this: due to bug#22274, during editing, UTF chars are stripped from buttons with a unit associated (length, angles, etc.). Example: if the button displays '90°' and you click on it with LMB, the editing string will become '90'. The problem arises if you use microns: '34µm' becomes '34' that blender interprets as 34 meters. So clicking on a button and hitting enter won't confirm the previous value, but will change it (very badly also). Of course nobody is using microns in blender, but the problem will arise when we will implement areas and option 'Separate Units' will be enabled. The value '2m² 3cm²' will become '2m' during editing. This patch solves the problem rewriting the string in a smarter way than just stripping the UTF chars: the unit is translated from unit->name_short ('µm') to unit->name_alt ('um'). So clicking on '34µm' the editing string will become '34um'. --- end note: rather then allowing empty strings in name_alt field I made it so if the unit system was the default one a NULL name_alt will just strip the string, since its the default its not needed.
2010-04-05Fix [#21895] Incorrect calculations for measurement systemMatt Ebb
3d view grid scale text description wasn't using unit scale correctly
2010-02-28- template with an example of a modal operator drawing with opengl (draw a ↵Campbell Barton
line on the screen) - access to event.mouse_region_x/y - basic type checking to callback functions (use PyCapsule names)
2010-02-28bugfix [#21381] Wrong negative separated unitsCampbell Barton
2010-02-16compile fixes for MSVC!Andrea Weikert
* function must return value! * missing _USE_MATH_DEFINES for M_PI
2010-02-16bugfix [#21136] End frame And Cur Frame setting is broken with ↵Campbell Barton
Metric/Imperial units [26876] and minor changes for unit.c, no functional change.
2010-02-12correct fsf addressCampbell Barton
2010-01-26Use #include "BLI_math.h" instead of _USE_MATH_DEFINES to get M_PI defined.Brecht Van Lommel
2010-01-25* Added #define _USE_MATH_DEFINES Thomas Dinges
in some files to get Blender to compile again on msvc. Without that, it didn't found M_PI.
2010-01-25Radians -> Degrees (in UI)Matt Ebb
Rotations are now stored internally as radians, while exposing degrees in the UI - in the graph editor and UI controls. This is done in two areas: 1) Using the unit system to convert RNA data to display as degrees in the UI controls 2) FCurves now use degrees for rotation, so you can edit in the graph editor what you see in the UI. All rotation data is consistently accessible in DNA and RNA as radians, degrees are only used for the UI controls and graph editor. This commit includes conversions will convert old files (stored data and also fcurve data) to the new units, hopefully everything should go smoothly! Part of this also changes a few properties that were hard-coded as degrees before (such as IK pole angle and brush texture rotation) to also use the same consistent system of radians (dna/rna) and degrees (ui). Thanks to Joshua for hints and review here too.
2009-09-24- cmake/make/scons didnt define INTERNATIONAL when buidling blenfontCampbell Barton
- BLF_lang_init used confusing IFDEF's, unlikely this was well tested. Split this into 3 functions for Apple/Win32/Unix, Unix uses BLI_gethome_folder(), cant test others, ideally they should use BLI_gethome_folder too but needs testing. Possibly each os cant be made to use BLI_gethome_folder and the separate func's can be removed (please test). - units, hectometers were displayed wrong.
2009-08-17- rna sequence sound was referencing unknown structCampbell Barton
- cmake was using libs that were disabled (whitespace changes too) - unit conversion missing checks for % ~ & operators
2009-08-17units with no separator can now be typed into number buttons - eg, 5'7" 2km4mCampbell Barton
2009-08-14- registering new python classes runs the free functions on existing classes.Campbell Barton
- print an error if RNA Structs are freed with a python pointer set to help with debugging leaks. - fix for unlikely eternal loop in unit conversion.
2009-08-13MSVC compile fix.Andrea Weikert
* replaced snprintf with BLI_snprintf * in unit.c used the #define hack used in several places already to avoid adding additional dependency.
2009-08-13added string max length option for unit functions bUnit_AsString and ↵Campbell Barton
bUnit_ReplaceString
2009-08-13- moved unit settings from user prefs into the scene.Campbell Barton
- use the scene context for the unit settings since there isn't a better place for it currently. - added 'chain' to imperial units - set more rna props to be distances and angles.
2009-08-12unit grid snap while transforming, display units in the header.Campbell Barton
2009-08-12when units are enabled use them for 3d viewport grid drawing, display the ↵Campbell Barton
dimension for the smallest grid cell. still need to make this work with grid snapping.
2009-08-12Set the clickstep for unit buttons to each click moves 1 unit.Campbell Barton
2009-08-12- was displaying 1cm as 10mm because of double precission problem.Campbell Barton
- typing in numbers without any units will use the units displayed before editing the value. - fixed some errors
2009-08-12fix for errors evaluating user input when units are disabledCampbell Barton
2009-08-12added time units, currently only used when metric or imperial are enabled.Campbell Barton
long/short units... day,d, hour,hr,h, minute,min,m, second,sec,s, millisecond,ms, microsecond,us Also may fix some bugs that were reported. Note, to convert fps to time evil_C needs to be used to get the scene.
2009-08-11- missing a decref for new pytypesCampbell Barton
- remove needless strlen
2009-08-11user interface units, off by default.Campbell Barton
- currently only distances work. - user preferences, edit section to set the units and scale. - option to display pairs (nicer for imperial display?) - support for evaluating multiple comma separated values eg: 2',11" ..or.. 5ft, 4mil - comma separated expressions/values accumulate 1+1,2**3,4cm/3 - attempted fast conversion from a value to a string so button drawing isn't too slow. * imperial long/short * - mile, mi - yard, yd - foot, ' - inch, " - thou, mil * metric long/short * kilometer, km meter, m centimeter, cm millimeter, mm micrometer, um nanometer, nm picometer, pm