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
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-02-11Merge branch 'blender-v2.82-release'mano-wii
2020-02-11Fix Attempt to free NULL pointermano-wii
Assert when snapping `Selection to ...` but without objects. Missed in the last commit.
2020-02-11Fix Attempt to free NULL pointermano-wii
Assert when snapping `Selection to ...` but without objects.
2020-02-10Tracking: Fix usage PLACEHOLDER functionSergey Sharybin
Don't use BKE_view_layer_context_active_PLACEHOLDER which is marked as "never use this". In fact, it isn't needed to lookup for camera in the tracking function at all: camera object is always explicitly passed to it.
2020-02-01Object: support 'Affect Parents' for snap/clear transformCampbell Barton
Resolves T69450
2019-12-24Object: 'Affect Only Origins' support for SnappingCampbell Barton
2019-12-24Fix snapping pose mode bugsCampbell Barton
- Object/pose checks were performed in same loop, so selected pose bones were moved instead of the object. - Snap selected to cursor/active incorrectly used unique object-data.
2019-12-24Cleanup: use doxy sections for view3d_snapCampbell Barton
2019-11-24Cleanup: doxygen commentsCampbell Barton
Also correct some outdated symbol references, add missing 'name' commands.
2019-07-31Refactor access to dependency graphSergey Sharybin
This change ensures that operators which needs access to evaluated data first makes sure there is a dependency graph. Other accesses to the dependency graph made it more explicit about whether they just need a valid dependency graph pointer or whether they expect the graph to be already evaluated. This replaces OPTYPE_USE_EVAL_DATA which is now removed. Some general rules about usage of accessors: - Drawing is expected to happen from a fully evaluated dependency graph. There is now a function to access it, which will in the future control that dependency graph is actually evaluated. This check is not yet done because there are some things to be taken care about first: for example, post-update hooks might leave scene in a state where something is still tagged for update. - All operators which needs to access evaluated state must use CTX_data_ensure_evaluated_depsgraph(). This function replaces OPTYPE_USE_EVAL_DATA. The call is generally to be done in the very beginning of the operator, prior other logic (unless this is some comprehensive operator which might or might not need access to an evaluated state). This call is never to be used from a loop. If some utility function requires evaluated state of dependency graph the graph is to be passed as an explicit argument. This way it is clear that no evaluation happens in a loop or something like this. - All cases which needs to know dependency graph pointer, but which doesn't want to actually evaluate it can use old-style function CTX_data_depsgraph_pointer(), assuming that underlying code will ensure dependency graph is evaluated prior to accessing it. - The new functions are replacing OPTYPE_USE_EVAL_DATA, so now it is explicit and local about where dependency graph is being ensured. This commit also contains some fixes of wrong usage of evaluation functions on original objects. Ideally should be split out, but in reality with all the APIs being renamed is quite tricky. Fixes T67454: Blender crash on rapid undo and select Speculation here is that sometimes undo and selection operators are sometimes handled in the same event loop iteration, which leaves non-evaluated dependency graph. Fixes T67973: Crash on Fix Deforms operator Fixes T67902: Crash when undo a loop cut Reviewers: brecht Reviewed By: brecht Subscribers: lichtwerk Maniphest Tasks: T67454 Differential Revision: https://developer.blender.org/D5343
2019-07-19Fix T66492: Divide by zero with cursor to selectedSebastian Parborg
2019-06-12View3D Snap: Don't mix original/evaluated in the same function parameters.mano-wii
2019-06-12Fix T64478: Wrong location Snap Selection to Cursor after set camera Follow ↵mano-wii
the path. In this case it is necessary to use the `object->parent` evaluated to obtain the correct `parentmat`.
2019-04-21Cleanup: comments (long lines) in editorsCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-03-26Cleanup: style, use braces for editor/spacesCampbell Barton
2019-03-203D View: snap cursor to world origin now resets rotationCampbell Barton
2019-03-19Cleanup: comment blocksCampbell Barton
2019-03-15Cleanup: indentation, wrappingCampbell Barton
Mostly functions wrapping args, not confirming to our style guide.
2019-03-08Cleanup: use plural names for Main listsCampbell Barton
Convention was not to but after discussion on 918941483f7e we agree its best to change the convention. Names now mostly follow RNA. Some exceptions: - Use 'nodetrees' instead of 'nodegroups' since the struct is called NodeTree. - Use 'gpencils' instead of 'grease_pencil' since 'gpencil' is a common abbreviation in the C code. Other exceptions: - Leave 'wm' as it's a list of one. - Leave 'ipo' as is for versioning.
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Fix T61051: crash with multi-object mixed mode snappingPhilipp Oeser
rBec3357e03ab1 introduced multi-object snapping. Seems like this was done without mixed-mode selections in mind. So code assumed that all selected objects are actually armatures [which can fail]. In 2.7 this was not a problem, because code only took active object into account, 2.8 was iterating over all selected_editable_objects. Now just iterate over objects in posemode instead Reviewers: brecht, dfelinto Maniphest Tasks: T61051 Differential Revision: https://developer.blender.org/D4287
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-15Cleanup: comment line length (editors)Campbell Barton
Prevents clang-format wrapping text before comments.
2018-12-31Fix T60015: snap to grid - snaps only to largest incrementmano-wii
Caused by rBc7a96651dfa4 when trying to remove all uses of the deprecated `rv3d->gridview`.
2018-12-19Fix T59391: Crash snapping to activeSebastian Parborg
2018-12-19Fix T59237: Instancing on a path doesn't do anythingSergey Sharybin
This commit makes it so curve path parent solving accepts an explicit arguments for both time and curve speed flag, making it so we don't have to mock around with scene's frame. One unfortunate issue still is that if the instancing object is used for something else, we might be running into a threading conflict. Possible solution would be to create a temp copy of an object, but then it will be an issue of preventing drivers from modifying other datablocks. At least the original issue is fixed now, and things behave same as in older Blender version. Additionally, the global variable which was defining curve speed flag behavior is gone now!
2018-12-14Merge branch 'master' into blender2.8Campbell Barton
2018-12-14Missed last commitCampbell Barton
2018-12-13Cleanup: de-duplicate active item center accessCampbell Barton
2018-12-07Depsgraph: Remove duplicated sets of recalc/update flagsSergey Sharybin
There were at least three copies of those: - OB_RECALC* family of flags, which are rudiment of an old dependency graph system. - PSYS_RECALC* which were used by old dependency graph system as a separate set since the graph itself did not handle particle systems. - DEG_TAG_* which was used to tag IDs. Now there is a single set, which defines what can be tagged and queried for an update. It also has some aggregate flags to make queries simpler. Lets once and for all solve the madness of those flags, stick to a single set, which will not overlap with anything or require any extra conversion. Technically, shouldn't be measurable user difference, but some of the agregate flags for few dependency graph components did change. Fixes T58632: Particle don't update rotation settings
2018-11-263D View: remove 3D cursorCampbell Barton
Use 3D cursor from the scene (was previously used for local-view).
2018-11-25Local ViewDalai Felinto
Bring back per-viewport localview. This is based on Blender 2.79. We have a limit of 16 different local view viewports. We are using both the numpad /, as well as the regular /. Missing features: * Hack to make sure lights are always visible. * Make rendered mode with external engines to support this as well (probably just need to support this in the RNA iterators). * Support over 16 viewports by taking existing viewports out of local view. The code can use a cleanup pass in the future to unify the test to see if an object is visible (or we can use TESTBASE in more places).
2018-11-01UI: Rename "Cursor to Center" to "Cursor to World Origin"Pablo Vazquez
Center is misleading since it could mean the center of the objects, selection, etc. Python API is left as is to not break compatibility. Maybe it could be renamed as well?
2018-10-10Fix for VIEW3D_OT_snap_selected_to_activeDalai Felinto
There is no active bone data in the cowed edit armature. This was introduced on rBe12df10120a0, back when we hoped the depsgraph would fullfill all our hopes and dreams. Before the single-context-editing depsgraph reality came crashing on us.
2018-09-04Fix T56679: Blender 2.8 crashes with bezier curve snap.Bastien Montagne
Follow up to rB621b16468ef72fb actually... Seriously... :/
2018-09-04Fix T56675: Crash when snapping Cursor to selected a Bone in Edit Mode.Bastien Montagne
Seriously...
2018-09-02Cleanup: styleCampbell Barton
2018-08-31Fixup for multi-objects snap functionsDalai Felinto
Sanitizing the use of TransVertStore, making sure it is always freed. Skip meshes with no vertex selected.
2018-08-31Fix memleak on snap_curs_to_sel_exDalai Felinto
2018-08-31Multi-Objects: VIEW3D_OT_snap_selected_to_cursor by Habib GahbicheDalai Felinto
Objects in edit mode now behave as if they were joined. Changes from reviewer (Dalai Felinto): code style (tabs, spaces, ...), missing MEM_freeN(objects); https://developer.blender.org/D3648
2018-08-28Cleanup: warningsCampbell Barton
2018-08-27Fix unreported: the gridview is no longer computed, so the snapping ↵mano-wii
functions have to use the actual grid scale.
2018-08-03Fix T55791: blender 2.8 crash on redoing 'snap to cursor' with Offset option ON.Bastien Montagne
Many snap_to operators need a fully evaluated depsgraph to run properly...
2018-07-30Cleanup: trailing spaceCampbell Barton
2018-07-23Cleanup: comments and UI descriptions for cursor snappingInes Almeida
2018-07-14UI: More descriptive tooltipPablo Vazquez
2018-07-10Fix T55877: Crash snapping non-edit-mesh to gridCampbell Barton