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
2014-05-01Another issue with includesCampbell Barton
OSX needs userdef for pixelsize, adjusted header to avoid this happening again.
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-27Code cleanup: const args and arraysCampbell Barton
2014-04-21View2d: API Cleanup for view<->region conversionCampbell Barton
View2D had some inconsistencies making it error prone in some cases. - Inconstant checking for NULL x/y args. Disallow NULL args for x/y destination pointers, instead add: - UI_view2d_region_to_view_x/y - UI_view2d_view_to_region_x/y - '_no_clip' suffix wasn't always used for non-clipping conversion, switch it around and use a '_clip' suffix for all funcs that clip. - UI_view2d_text_cache_add now clips before adding cache. - '_clip' funcs return a bool to quickly check if its in the view. - add conversion for rectangles, since this is a common task: - UI_view2d_view_to_region_rcti - UI_view2d_region_to_view_rctf
2014-04-21Fix for UI_view2d_to_region_float (was ignoring x,y args)Campbell Barton
use this for grease pencil stroke conversion to avoid float->int->float conversion.
2014-04-07Code cleanup: project gpencil in float coords & delete outdated commentsCampbell Barton
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-03-31Code cleanup: use boolCampbell Barton
2014-02-28Proper solution for crash of GP when marker is not exist on current frameSergey Sharybin
2014-02-07ListBase API: add utility api funcs for clearing and checking emptyCampbell Barton
2014-02-03Code cleanup: use bools where possibleCampbell Barton
2014-02-03Use bool where appropriateJoshua Leung
2014-01-28Code cleanup: remove references to svn and code styleCampbell Barton
2014-01-27Code cleanup: use booleans where appropriateCampbell Barton
2014-01-21Code Cleanup: use bool for return values and correct commentsCampbell Barton
also remove CDDM_Check, theres no need for it.
2014-01-21Minor cleanup from latest coverity checks - if we have a previous curve, we ↵Bastien Montagne
can safely assume we also have a previous stroke! Better to assert here, than checking this randomly...
2014-01-15Fix for mistake in recent shadow addition in tabsCampbell Barton
2014-01-15Code Cleanup: use iroundfCampbell Barton
also increase precision of rctf print functions
2014-01-15Code cleanup - Commented out some code which wasn't actually doing anythingJoshua Leung
gpf->framenum is an int, not a float. Hence, this type of rounding has no effect.
2014-01-12Fix T38124: Grease Pencil Line thicknessBastien Montagne
Issue was in GP draw code: line thickness was not initiated properly (and a null one makes OGL draw a unity-width line). Also tweaked threshold (when to start a new, width-different OGL linestrip), to make it inversaly proportional to thickness (so that now, it's 0.2 for a thickness of 1, 0.1 for a thickness of 2, etc.), avoids too big steps when using large thickness.
2014-01-12Style Cleanup: whitespaceCampbell Barton
2014-01-10Fix clang warning for (harmless) use of uninitialized variable.Brecht Van Lommel
2014-01-09Cleanup: mostly, prefer array syntax to pointer arithmetic (keep the later ↵Bastien Montagne
only where it really makes sense).
2014-01-09Fix T38135: Global start and end point of the curve was set to zero radius & ↵Bastien Montagne
weight, when using 'linked' option. This was (more or less) OK with hand-drawn strokes, as the number of points made it nearly unoticable, but broke completely with line and poly strokes! Did this when I implemented linked curve feature because it was easier! Now, convert code always adds a heading and trailing point to the curve, to get initial/final zero radius. Adds even more complexity to those functions... :/
2014-01-09Grease pencil 'convert to curve' code: some cleanup & refactor.Bastien Montagne
2014-01-09Cleanup: Remove tabs in empty lines, use bool when possible instead of int, ↵Bastien Montagne
and mark const values/parameters as such.
2014-01-04RNA API: use bool's for enum itemf callbacks.Campbell Barton
2013-11-25Code Cleanup: rename vars for detecting change to be more consistentCampbell Barton
rename change/is_change/is_changed/modified -> changed also use bools over int/short/char and once accidental float.
2013-11-25UI: remove unnecessary confirmation popupsEmanuel Claesson
This makes a number of operators no longer ask for confirmation, rather it will show an info message after performing the operation. Ref T37422 for decision. In particular, these were changed: * Delete objects, bones, keyframes, masks, mask curves, motion tracks, markers. * Clear and delete keyframes in the 3D view. * Align bone to parents. * Separate bones from armature. * Group/ungroup metastrips in sequencer. * Copy/paste objects to/from buffer. Reviewed By: brecht, dingto Differential Revision: http://developer.blender.org/D35
2013-10-31code cleanup: spellingCampbell Barton
2013-10-31remove return argument from wmOperatorType->cancel, was only ever returning ↵Campbell Barton
OPERATOR_CANCELLED.
2013-10-26rename give_cursor to ED_view3d_cursor3d_getCampbell Barton
2013-09-07rename cursor setting functions to make modal set/restore more clearly ↵Campbell Barton
related functions.
2013-08-24style cleanup: space around for loop wrappersCampbell Barton
2013-08-24Related to [#36548] "Grease Pencil" ProblemsBastien Montagne
Use scene's GPencil when active object is deselected. Else it can be tricky and not user-friendly to access to the scene's GPencil once some objects have GPencil data (you have to select/active a non-gpencil object, or switch to a layout without active object...).
2013-08-20Fix GPencil part of [#36101] BSurface Throw an Error When Press "Add Surface"Bastien Montagne
gpencil_data_get_active and gpencil_data_get_active_v3d did not have consistent behavior when we had an active object, but not on any visible layer (the first would return the default scene gpd in this case, while the first was still returning active object's one). Now they both return scene's one.
2013-07-19style cleanup: switch statements, include break statements within braces & ↵Campbell Barton
indent. also indent case's within the switch (we already did both of these almost everywhere)
2013-06-10code cleanup: use boolean for intersection functions.Campbell Barton
2013-06-09Bugfix [#35686] Grease pencil to curve conversion causes NAN weights on verticesJoshua Leung
When you convert a grease pencil stroke to a polygon curve and look at the vertices, the first and last vertex have weight = 0, but all others have a -NaN value. This was caused by division by zero issues when minmax_weights[0] == minmax_weights[1].
2013-05-28move BLO_sys_types.h -> BLI_sys_types.h (it had nothing todo with loading)Campbell Barton
remove MEM_sys_types.h which was a duplicate.
2013-05-28Fix #35473: Using Redo panel in View3D after Grease Pencil action moves GP ↵Sergey Sharybin
layer to that area Remove REGISTER flag from GP draw operator, so redo wouldn't screw up regions.
2013-05-20code cleanup: split scons includes onto multiple lines, reduce chance of ↵Campbell Barton
include conflicts later on.
2013-05-08code cleanup: use 'const float[2]' where possible.Campbell Barton
2013-04-16Random number generator: replace a bunch of usage of the global random numberBrecht Van Lommel
generator with a local one. It's not thread safe and will not give repeatable results, so in most cases it should not be used. Also fixes #34992 where the noise texture of a displacement modifier was not properly random in opengl animation render, because the seed got reset to a fixed value by an unrelated function while for final render it changed each frame.
2013-04-05code cleanup: include orderCampbell Barton
2013-03-26I18n: various "new data translation" fixes...Bastien Montagne
2013-03-26grease pencil eraser mouse-wheel resize was inverted compared to circle-select.Campbell Barton
2013-03-26grease pencil xray option wasn't being applied to single points in the 3d view.Campbell Barton
2013-03-26style cleanup:Campbell Barton
also rename mesh_getVertexCos() --> BKE_mesh_vertexCos_get() to match curve function.
2013-03-26fix [#34658] GreasePencil eraser deletes strokes through geometry, surfacemodeCampbell Barton
add depth check to grease pencil eraser when xray option is disabled.