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-11-20Fix T42660 snapping not working nicely on graph editor.Antony Riakiotakis
Basically, get the grid increments and reuse them when snapping. System is slightly crappy here, we should calculate those factors only once, but leaving as todo for later.
2014-11-17Simplify function to get view vector in world spaceAntony Riakiotakis
2014-11-16Cleanup: use BLI_listbase_*** prefix for count,sort,sort_rCampbell Barton
2014-11-16Cleanup: Replace `WM_operator_name_call` by `WM_operator_name_call_ptr` ↵Bastien Montagne
where possible. This avoids one lookup in optypes list...
2014-11-13BMesh: shrink/fatten faces-normals in face modeCampbell Barton
nice for solid-modeling, gives better results for partial selections.
2014-11-13Fix T42571,T42572 snapping ignores linked objectsAntony Riakiotakis
Make sure to use edit object if objects share the same data.
2014-11-11UI Refactor T41640Campbell Barton
Make the UI API more consistent and reduce confusion with some naming. mainly: - API function calls - enum values some internal static functions have been left for now
2014-11-10Fix T42199: PET displays when transforming around centersCampbell Barton
Old code only worked for faces.
2014-11-05Simplify node frame detach operators, based on T34670 by @julien.Lukas Tönne
* The `NODE_OT_parent_clear` operator has been removed. This was a very simplistic operator that detached every selected node, which is not very useful in case of hierarchical frames. The `NODE_OT_detach` operator only detaches the top parent nodes in the selection, keeping the hierarchy of selected nodes intact. * The `ALT+P` shortcut has been reassigned to the `NODE_OT_detach` operator which replaces the previous `NODE_OT_clear` mapping with similar behavior (also gives a menu entry shortcut now). * Shortcuts for `NODE_OT_detach_translate_attach` have been removed, due to crowded and messy keymap and unintuitive shortcut `ALT+F`. This macro operator is still registered, in case hardcore users want to make their own keymaps, but not mapped by default. Node keymaps may need some redesign in the future for these things.
2014-10-30Transform: snapping: normal-align: Cleanup!Bastien Montagne
Use BLI's `rotation_between_vecs_to_mat3` helper instead of own custom code, both simplifies the code and fixes wrong handling when snapped normal was exactly opposed to org one (i.e. 180° rot case).
2014-10-30Math Lib: add transpose_m3_m3, m3_m4, m4_m4Campbell Barton
2014-10-30Fix T42444: Neg scale rotated object flips 2x axisCampbell Barton
This is a very old bug and a few attempts have been made to fix it before, Old code was checking worldspace axis flipping, instead of axis flipping WRT the axis-alignment of the object.
2014-10-29Cleanup: warnings, typosCampbell Barton
2014-10-28Fix T41041: 'Delete keyframe' removes markers tooCampbell Barton
Operators that trigger UI events (but nothing else) were using 'CANCELLED' making it impossible to tell if an invoke function failed, or opened a menu.
2014-10-23Fix T42354 modal transform map not cycling through local/globalAntony Riakiotakis
orientation properly Patch by Phillip Oeser, thanks!
2014-10-22Cleanup: avoid loop-in-loop when mirror isn't usedCampbell Barton
Also name 'children' is normally used for a list
2014-10-22Fix T42334: x-mirror fails in armature with a partially mirrored chain.Lukas Tönne
When resetting edit bones on cancel, they also have to reset connected parent and child bone tips and heads respectively, since these can be modified during the transform.
2014-10-19Fix typo in calculateCenterMedian that could give computed median point ↵Grigory Revzin
wrong values. From soc-2014-shapekey branch, with minor edits by mont29 (Bastien Montagne).
2014-10-16Fix T42256: Translation operator moves Child-Of constrained objects in wrong ↵Bastien Montagne
space when only using parent's rotation and parent is rotated. Just do not use crazyspace correction with childof constraints in this case. Note this is only a very partial fix (partial use of parent loc on some axes is still broken in transform), a real fix would probably require a full rewrite of constraints handling in transform code (a mere static correction matrix just cannot work in all possible cases, we'd need a full dynamic correction system here). Anyway, transform code as a whole is horrible. :/
2014-10-13BLI_utildefines: add SQUARE macroCampbell Barton
also minor cleanup
2014-10-10Cleanup: (float)floor -> floorfCampbell Barton
2014-10-08Ghost Context RefactorJason Wilkins
https://developer.blender.org/D643 Separates graphics context creation from window code in Ghost so that they can vary separately.
2014-10-07Cleanup: styleCampbell Barton
2014-10-03Cleanup: spelling, wsCampbell Barton
2014-10-02Code cleanup:Antony Riakiotakis
calc_manipulator_stats is only used in manipulator (and soon will only use the context for such queries)
2014-09-28Transform: Provide descriptive error messages when wrong transform modes are ↵Joshua Leung
used in DopeSheet
2014-09-24Cleanup: const correctness for BLI_sortlistCampbell Barton
2014-09-24Cleanup: use float versions of functions when in/output are floatsCampbell Barton
2014-09-12Cleanup & remove redundant checkCampbell Barton
2014-09-11Fix non-deterministic editmesh normal orientationsCampbell Barton
- selecting a boundary edge would randomly point in/outside the face (now point away). - selecting 3 verts would use the first selected edge as the tangent (now use longest). - selecting 1 vert betweem edges, uses the edges to define the tangent.
2014-09-10Fix T41112: Rotate manipulator (Trackball) + release confirm not working?Anthony Edlin
Usual same issue (unset property != set property to default value). Review and minor edits by mont29 (Bastien Montagne).
2014-09-04Fix View3D 'Auto Keying' alignment (when dpi!=72)Campbell Barton
2014-08-26Fix T37534 remaining issue: auto-enable bevel weight viewHoward Trickey
whenever enter edge bevel weight editing. This is what happens when one makes an edge sharp, for instance. The edge bevel weight display is not on by default for performance reasons, but seems reasonable to enable it when user indicates interest by editing bevel weight values.
2014-08-26Fix T41590: When scene scale is not 1.0, and units are "None," Blender ↵Bastien Montagne
assumes translations are in meters. Turned out there were several issues in handling of scale parameter by numinput. Fixed that by factorizing more some code in common with 'usual' numbuttons eval code (new `bUnit_getScaleUnit()` helper will return valid scaled value, depending on given system and type). Now, numinput behaves as expected - using default unit amended by scale in case no unit is given (i.e. entering '20' with a scale of 0.01 will give you 20cm, and '20cm' as well!).
2014-08-14Hack for edge-slide macro was lost in header cleanupCampbell Barton
add back include for USE_LOOPSLIDE_HACK
2014-08-08Fix crash on edit mode with multi-align projectAntony Riakiotakis
2014-08-06Remove confusing word "faculative" from commentsNicholas Bishop
Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D711
2014-07-31Fix T40958 align rotation + project individual elements not workingAntony Riakiotakis
This is another example of transform code crappiness. Projection snapping for objects is handled separately than regular snapping. Luckilly for us, we have the normal ready from the raycast result and a copy of code from ElementRotation function can do the necessary rotations for us. I have not enforced constraints here (arguably, maybe I should, and the already present projection snapping should do that too but seems it is commented out and the unorthodox order of operations here has me a bit scared. Leaving as TODO)
2014-07-28As suggested by Campbell, rather use BVHTree to get len_diff in this ↵Bastien Montagne
morning's fix. Note than it's using nearest faces, since it showed to be much more performant than nearest vertex (quite odd, it's about 40% slower for the first element, then 50 times quicker for all others, as if BVH was cached, and building face was slower than verts one, but then using it, much quicker!).
2014-07-28Fix T41191: Face snapping doesn't work properly.Bastien Montagne
Issue was caused by rB47ec0394ca3d, which disabled BBox check in editmode - but bbox check was also setting `len_diff`, which is mandatory when doing ray_start_local correction for ortho view... Now, in this case, we do a quick rough compute of len_diff from vertices coordinates (accuracy is not needed here, we just have to be sure corrected `ray_start_local` remains 'before' (outside) of the geometry).
2014-07-28Fix T41201: Blender Crashes when UV EditingSergey Sharybin
Disable adding snapping point outside of 3D space for now, visualization of the points is not implemented outside of this space and silently adding them wouldn't really be a good idea.
2014-07-23Occlusion Query based selection.Antony Riakiotakis
This patch creates an interface for selection mechanisms in opengl. This makes it possible to switch between occlusion query based or select rendermode based selection transparently. This is really useful on graphics drivers that do not accelerate the select rendermode path (some ATI cards are notorious for this, and the new path is used by default there), since occlusion queries are always hardware accelerated due to their use in games. The option can be found under system - selection. Auto just enables occlusion queries for ATI users while the rest of the options enforce one of the two methods always. There is just one known change, previous code enforced nearest bone to always get selected, even when mouse selecting near the same position, I couldn't replicate the behaviour though. patch by me with edits and review by Campbell. Thanks!
2014-07-21Transform: edit to recent commitCampbell Barton
Copying long comments about & `#if 0` is hint it could be defined in one place.
2014-07-21Fix T40432: Scaling to zero with manipulate center points works precisely on ↵Bastien Montagne
second time Commented out the 'no zero' protection of scaling transforms for numinput. Issue is, once an axis has null scale, you can't regrow it from transform code (you have to directly edit the scale property). This is not ideal, but getting good behavior in this case is hairy... Yet, when using numinput, you type precise values, so if you want to set it to zero, set it to zero. User is assumed responsible, we should avoid too much 'invisible magic' when handling precise inputs. ;) Note: an idea for possible future feature would be to have an 'absolute' mode for numinput (allowing to type in real value, not factors).
2014-07-21CleanupCampbell Barton
2014-07-21GSOC 2013 paintAntony Riakiotakis
Yep, at last it's here! There are a few minor issues remaining but development can go on in master after discussion at blender institute. For full list of features see: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.72/Painting Thanks to Sergey and Campbell for the extensive review and to the countless artists that have given their input and reported issues during development.
2014-07-21Math Lib: rename mul_serie_m3 to mul_m3_series & reorder argsCampbell Barton
Importantly, reversed mul_serie_m3 argument order (so it matches the m4 function)
2014-07-20Math Lib: use variable length args for mul_serie_m3,m4 (instead of trailing ↵Campbell Barton
NULL's)
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-07-16Fix T41075: Segfault when attempting to escape from bone translation.Bastien Montagne
Minor logical error in rBb617d6d5 ;)