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-04-23Fix T75836: Light target misses updates while draggingCampbell Barton
2020-04-17Fix normal smoothing for light positioning gizmoCampbell Barton
2020-04-17Fix T75794: Light point gizmo translate jumpsCampbell Barton
Holding Ctrl while dragging the light point gizmo would use uninitialized stack memory if the normal had not been initialized by a surface. Now holding Ctrl can be used to drag, even when there is no surface to orient to.
2020-04-03Cleanup: use abbreviated names for unsigned types in editorsCampbell Barton
2020-03-19Cleanup/refactor: remove BKE_idcode, in favour of BKE_idtype.Bastien Montagne
Mpving utils from idcode to idtype proved to be somewhat painful for some reasons, but now all looks good. Had to add a fake/empty shell for the special snowflake too, `ID_LINK_PLACEHOLDER/INDEX_ID_NULL`...
2020-03-19GPencil: Cleanup - Split BKE_gpencil.h geometry functions into ↵Antonio Vazquez
BKE_gpencil_geom.h This split prepare the code for future geometry functions.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-18Cleanup: Resolve HKEY conflictRay Molenkamp
Both the MS headers and blender headers define the HKEY which gives all kind of inclusion order issues. This diff renames all *KEY constants to EVT_*KEY to resolve this conflict. Reviewed By: brecht , dfelinto Differential Revision: http://developer.blender.org/D7164
2020-03-09GPencil: Refactor of Draw Engine, Vertex Paint and all internal functionsAntonio Vazquez
This commit is a full refactor of the grease pencil modules including Draw Engine, Modifiers, VFX, depsgraph update, improvements in operators and conversion of Sculpt and Weight paint tools to real brushes. Also, a huge code cleanup has been done at all levels. Thanks to @fclem for his work and yo @pepeland and @mendio for the testing and help in the development. Differential Revision: https://developer.blender.org/D6293
2020-03-06Cleanup: Rename ARegion variables from ar to regionJulian Eisel
The old convention was easy to confuse with ScrArea. Part of https://developer.blender.org/T74432. This is mostly a batch rename with some manual fixing. Only single word variable names are changed, no prefixed/suffixed names. Brecht van Lommel and Campbell Barton both gave me a green light for this convention change. Also ran clan clang format on affected files.
2020-02-10Cleanup/refactor: Rename `BKE_library` files to `BKE_lib`.Bastien Montagne
Note that `BKE_library.h`/`library.c` were renamed to `BKE_lib_id.h`/`lib_id.c` to avoid having a too generic name here. Part of T72604.
2020-02-01Object: support 'Affect Parents' for snap/clear transformCampbell Barton
Resolves T69450
2020-02-01Object: no longer skip weight paint objects when clearing transformCampbell Barton
This meant a non-active selected object would be skipped based on the mode last used, mostly an issue with 'Lock Object Modes' disabled. Other transform operators (such as snap) don't do this. Partially reverts b8aff064662d5
2019-12-22Object: 'Affect Only Origins' support for 'Clear Transform'Campbell Barton
Resolves T70410
2019-11-24Cleanup: doxygen commentsCampbell Barton
Also correct some outdated symbol references, add missing 'name' commands.
2019-09-18Fix excessive dependency graph evaluation while painting strokesBrecht Van Lommel
Particularly noticeable when vertex painting with a subsurf modifier. In some cases every sculpt or paint stroke step would evaluate the dependency graph. This should only happen for redraws. Now more selectively choose if the dependency graph should be evaluated to initialize the view context. Doing it in the view context evaluation is somewhat hidden, now it's more explicit. Differential Revision: https://developer.blender.org/D5844
2019-09-14Cleanup: use const args, variablesCampbell Barton
2019-09-07Cleanup: use post increment/decrementCampbell Barton
When the result isn't used, prefer post increment/decrement (already used nearly everywhere in Blender).
2019-08-23GPencil: Fix unreported set origin from PythonAntonio Vazquez
The set origin was not working from python because the operator was checking if the stroke was valid in the console area. As the stroke only can be valid for GP obects, this check is not needed.
2019-08-23Armature: use BKE_armature_transform when applying transformationCampbell Barton
Keep ED_armature_transform for RNA Armature.transform since it operates on edit-bones in edit-mode. Rename ED_armature_transform_bones to ED_armature_edit_transform since it wasn't obviously an edit-mode function.
2019-08-21Cleanup: use doxy groupsCampbell Barton
2019-08-04Fix T68202: GPencil Set Origin do not refresh until object is movedAntonio Vazquez
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-26Fix T67507: Set origin on armature moves incorrectly parented objectsSergey Sharybin
Need to copy changes from original armature to evaluated one prior to BKE_pose_where_is(), otherwise the pose matrix in pose channels will not be correct. Can not use dependency graph update here, since we must not re-evaluate possible dependencies of the changed armature. Reviewers: brecht Reviewed By: brecht Maniphest Tasks: T67507 Differential Revision: https://developer.blender.org/D5331
2019-07-09Fix T66605: Operation on origins not working correctSergey Sharybin
2019-07-09Fix crash on redo applying transformsPhilipp Oeser
When accessing evaluated objects, make sure access to an evaluated dependency graph is done. This solves possible access to NULL data on redo. See https://developer.blender.org/D5209
2019-07-09Fix crash when redoing Set Origin operatorSybren A. Stüvel
The operator was using a non-evaluated depsgraph to get the evaluated scene, which caused the crash. This fixes the crash reported in T66605, but not the problem where sometimes object origins aren't set.
2019-07-08Fix T66526: child's objects move if change their origin positionPhilipp Oeser
Reviewers: sergey Maniphest Tasks: T66526 Differential Revision: https://developer.blender.org/D5201
2019-07-08Fix T66525: Wrong apply scale for children chainSergey Sharybin
The operator did not behave correct when there was a chain of parents longer than 1.
2019-07-07Cleanup: spellingCampbell Barton
2019-07-03Fix T66377: Applying rotation/scale on a parent changes location of a childSergey Sharybin
2019-06-19Fix order of modifications for Set Origin.Sergey Sharybin
The logic of parent update is very similar to Apply Transform, so made it so parents are handled before children.
2019-06-19Fix T65900: Apply Scale doesn't work correct with parentingSergey Sharybin
Parents are to be handled prior to their children.
2019-06-19Cleanup: Pass explicit dependency graphSergey Sharybin
Avoids hash lookup on per-object basis when applying transform.
2019-06-04Fix T60971: Apply visual transform not workingPelle Johnsen
Fix issue with 'apply visual transfrom' not working. Based on fix for https://developer.blender.org/T55494 Reviewers: campbellbarton, sergey Maniphest Tasks: T60971 Differential Revision: https://developer.blender.org/D5007
2019-05-31Fix T55494: Apply transforms on parents and childrenSergey Sharybin
Fix T63790: Crash when applying Scale of Object with vertex parent Made apply transform to fully live in the evaluated domain. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D4976
2019-05-28Cleanup: clang formatCampbell Barton
2019-05-27Fix T65160: missing updates when setting origin on a collection instancePhilipp Oeser
Reviewers: sergey, brecht Maniphest Tasks: T65160 Differential Revision: https://developer.blender.org/D4953
2019-05-01ClangFormat: run with ReflowComments on source/Campbell Barton
Prepare for enabling ReflowComments.
2019-04-22Cleanup: style, use braces for editorsCampbell Barton
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-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-03-05Cleanup: rename RENDER_OVERRIDE -> HIDE_OVERLAYSCampbell Barton
Match the UI naming (changed since 2.7x).
2019-02-27Cleanup: file rename lamp -> lightCampbell Barton
2019-02-27Cleanup: rename lamp -> lightCampbell Barton
2019-02-27DNA: rename Lamp -> LightCampbell Barton
- BKE_lamp -> BKE_light - Main.lamp -> light
2019-02-18DNA: rename Object.size -> scaleCampbell Barton
Resolves a common cause of confusion.
2019-02-18DNA: rename Collection.dupli_ofs -> instance_collectionCampbell 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.