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
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-08Fix T62903: black line in UV editor on 32 bitBrecht Van Lommel
2019-07-01Gizmo: support for filled circle with inner non-zero radiusCampbell Barton
Needed for changes to the scale gizmo.
2019-06-07Keymap: gizmos now use a map that optionally activates on pressCampbell Barton
The legacy keymap now activates on press.
2019-05-30Gizmo: activate some gizmos on drag instead of pressCampbell Barton
Use drag-only keyamp to adjust gizmos which use drag motion to change a value. By default gizmos still activate on press. This allows for left click select to be used with transform without the gizmos getting in the way. Even though this isn't necessary for right click select it allows click events to pass through and be used by tools which can be useful. Resolves T63996
2019-04-24Cleanup: sort CMake include pathsCampbell Barton
2019-04-22Cleanup: style, use braces for editorsCampbell Barton
2019-04-21Cleanup: comments (long lines) in editorsCampbell Barton
2019-04-18Cleanup: add trailing commas to avoid right shiftCampbell Barton
2019-04-17ClangFormat: format '#if 0' code in source/Campbell 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-04-14CMake: prepare for BLENDER_SORTED_LIBS removalCampbell Barton
No functional change, this adds LIB definition and args to cmake files. Without this it's difficult to migrate away from 'BLENDER_SORTED_LIBS' since there are many platforms/configurations that could break when changing linking order. Manually add and enable WITHOUT_SORTED_LIBS to try building without sorted libs (currently fails since all variables are empty). This check will eventually be removed. See T46725.
2019-04-09Cleanup: spellingCampbell Barton
2019-04-02Cleanup: empty expression statement warningCampbell Barton
2019-03-25Gizmo: add option to move & dial gizmos to select as filledCampbell Barton
Draw as an outline while using solid selection.
2019-03-20Cleanup: styleCampbell Barton
2019-03-20Fix T62248: Infinite Hotspot Size Crop NodeJeroen Bakker
When the area of the crop node is zero the hotspot margin becomes infinite. This makes the gizmo by default think the translate mode hotspot is everywhere. This fix will return a state if the INFINITY is detected so we can return the hotspot drawing. The cage2d gizmo is still not usable for sizes of 0 by 0 as now it won't draw anything. the issues of the gizmo should be re-designed so we can mitigate these limitations. But that is out of scope for this fix. Reviewed By: campbellbarton Maniphest Tasks: T62248 Differential Revision: https://developer.blender.org/D4516
2019-03-08Cleanup: spellingCampbell Barton
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-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-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
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-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2019-01-06Cleanup: add trailing commas to structsCampbell Barton
Needed for clang formatting to workaround bug/limit, see: T53211
2018-12-03Cleanup: remove flag from GizmoCommonDataCampbell Barton
Use struct member instead, there are already many gizmo flags to keep track of.
2018-12-03Fix T58573: Camera lens gizmo error on clickCampbell Barton
2018-10-18Fix debug build after recent changes.Brecht Van Lommel
2018-10-18Cleanup: fix compiler warnings.Brecht Van Lommel
2018-10-15Mesh: remove DerivedMesh for face-map drawingCampbell Barton
2018-10-10Fix diagonal line artifact in view navigate icons.Brecht Van Lommel
Thanks to Clément for finding the fix!
2018-10-09Image Empties: Usability improvements and fixesJacques Lucke
- new "Align to View" option when loading a new image - automatically align to view when dropping an image into a viewport - larger default size for image empties - fix image empty gizmo in orthographic view - new "Align Objects to View" operator Reviewer: brecht Differential: https://developer.blender.org/D3778
2018-10-09Cleanup: namingCampbell Barton
- immAttrib* -> immAttr* - immSkipAttrib -> immAttrSkip Term 'attr' is a convention for GPU module.
2018-10-05Dial3d Gizmo: consider the offset value in the incremental angle drawing.mano-wii
This prevents misalignment with the Spin tool gizmo for example.
2018-10-04Cleanup: styleCampbell Barton
2018-10-04ED_gizmotypes_dial_3d_draw_util: use a struct to hide most parameters.mano-wii
2018-10-03Dial3d Gizmo: Add the Incremental Angle option to snap.mano-wii
2018-10-03Dial 3d Gizmo refactoring.mano-wii
Transform the gizmo's drawing function into a generic function for use in other parts of the code.
2018-09-27UI: use new 3D viewport navigation icons and image icon in add menu.Brecht Van Lommel
I had to make the viewport navigation icons a bit smaller in the SVG since the edges were being clipped off, we only support 16x16 icons currently. They are a bit blurry because of this.
2018-09-27Merge branch 'master' into blender2.8Brecht Van Lommel
2018-09-26Gizmo: initial snap support for moveCampbell Barton
This allows the gizmo to snap to 3D view elements, Although currently this isn't usable gizmo's that use operator redo.
2018-09-26Gizmo: support for cancelling move3d modal changesCampbell Barton
2018-09-25Gizmo: dial support for a click setting a valueCampbell Barton
Useful for click w/o drag to spin a full revolution.
2018-09-25Gizmo: reset dial value on cancelCampbell Barton
2018-09-24Gizmo: dial3d option to draw a partial arcCampbell Barton
2018-09-21Gizmo: spin tool XYZ axis togglesCampbell Barton
New handle type for initial spin, gives clear differentiation between do & redo (similar to extrude). Some tweaks still required to match T56571.
2018-09-21Gizmo: fix incorrect dial clip scalingCampbell Barton
Failed with obvious error when the dials scale wasn't 1.0
2018-09-20Cleanup: use win_to_3d_on_plane functionCampbell Barton
2018-09-20Merge branch 'master' into blender2.8Campbell Barton
2018-09-20Gizmo: use simple unclipped win_to_ray functionCampbell Barton
When projecting the cursor onto a plane, clipping isn't important.
2018-09-20Cleanup: renaming missed from mergeCampbell Barton