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-09-22Object: check for negative index access with duplicator reading UV'sCampbell Barton
2020-09-14Fix T73590: collection instance offset is not applied correctlyJacques Lucke
The instance offset should be applied before scaling. This way the scaling is done from the "collection origin". Reviewers: zeddb, brecht Differential Revision: https://developer.blender.org/D8889
2020-08-13Merge branch 'blender-v2.90-release'Philipp Oeser
2020-08-13Cleanup: incorrect comment wrappingCampbell Barton
Missed this comment when updating fix for T77409.
2020-08-13Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-08-13Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-08-13Fix T77409: Crash showing vertex/face duplicators in edit-modeCampbell Barton
This was a regression in deaff945d0b9 which skips copying a mesh. Dupli-verts/faces were not updated to account for this. This supports iterating over edit-mesh vertices & faces, since falling back to a full copy (as we do in some places) will be slow while transforming geometry. This commit looks as if it would change behavior with orcos, since any edit-mesh deformation causes them to be assigned. However in practice there is no functional change, details in comments.
2020-08-13Cleanup: remove two sided face checkCampbell Barton
Two sided faces aren't supported and would cause many issues elsewhere.
2020-08-13Cleanup: use 'inst_ob' variable name for consistencyCampbell Barton
Dupli verts/faces named these arguments differently.
2020-08-13Cleanup: remove unused struct members from dupli-face/vertCampbell Barton
Replace the evaluated mesh with VertexDupliData.mvert since only vertices are used. This makes dupli-vert similar to how dupli-face was already working.
2020-08-13Cleanup: move mesh access for dupli vert/face into shared functionCampbell Barton
De-duplicate mesh access & comments.
2020-08-13Cleanup: pass normal as a float to dupli-vert functionCampbell Barton
Needed for supporting edit-mode dupli-verts. Currently the un-scaled short values are used to avoid changing behavior (noted in comments).
2020-08-13Cleanup: spelling, use full sentences for object_dupli.cCampbell Barton
2020-08-13Cleanup: use const for dupli vert/face, 'r_' prefix for return valueCampbell Barton
Make it obvious which values are used read-only, which are written to.
2020-08-11Merge remote-tracking branch 'origin/blender-v2.90-release'Sybren A. Stüvel
2020-08-11Revert "Fix T77409: Crash showing vertex/face duplicators in edit-mode"Sybren A. Stüvel
This reverts commit 9adedb26055f03263fefba380980ee2abcb5327e. It changes how duplis work, and by that altered how Alembic and USD files are written. This was signalled by a failing Alembic unit test.
2020-08-11Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-08-11Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-08-11Fix T77409: Crash showing vertex/face duplicators in edit-modeCampbell Barton
Support duplicators in edit-mode without creating a mesh copy.
2020-08-11Cleanup: use doxy sections for object_dupli.cCampbell Barton
2020-08-10Cleanup: use doxy sections for object_dupli.cCampbell Barton
2020-08-07Cleanup: pass arrays const where possibleCampbell Barton
2020-08-07Cleanup: Blenkernel, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/blenkernel` module. No functional changes.
2020-08-04Point Clouds: basic support for instancing objects on pointsBrecht Van Lommel
Same exact system as instancing on vertices for a mesh. More powerful ways of instancing will be added at some later point, but this makes the basics works and is consistent with other geometry types.
2020-07-23Cleanup: rename Curve.len_wchar to len_char32Campbell Barton
The name was misleading as the length is for char32_t, not wchar_t.
2020-07-06Reduce `DupliObject::persistent_id` from 16 to 8 itemsSybren A. Stüvel
For historical reasons, `DupliObject::persistent_id` was of size `2*MAX_DUPLI_RECUR`. These reasons are now gone, and the persistent ID always gets exactly one array element for every dupli-recursion. Differential Revision: https://developer.blender.org/D8222 Reviewed by: brecht
2020-06-13Cleanup: naming for lattice deform functionsCampbell Barton
- BKE_lattice_deform_data_create was init_latt_deform. - BKE_lattice_deform_data_destroy was end_latt_deform. - BKE_lattice_deform_data_eval_co was calc_latt_deform.
2020-04-03Cleanup: Animation, move AnimData API to `anim_data.c`/`BKE_anim_data.h`Sybren A. Stüvel
The `BKE_animsys.h` and `anim_sys.c` files already had a an "AnimData API" section. The code in that section has now been split off, and placed into `BKE_anim_data.h` and `anim_data.c`. All files that used to include `BKE_animsys.h` have been adjusted to only include the animation headers they need (sometimes none). No functional changes.
2020-04-03Cleanup: split `BKE_anim.h` and `anim.c` into smaller piecesSybren A. Stüvel
The files are now split up into the following sections: - `BKE_anim_path.h` and `anim_path.c` for path/curve functions. - `BKE_anim_visualization.h` and `anim_visualizationanim_path.c` for animation visualization (mostly motion paths). - `BKE_duplilist.h` for DupliList function declarations. These were already implemented in `object_dupli.c`, so they were rather out of place being declared in `BKE_anim.h` in the first place. No functional changes.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-02-28Objects: make evaluated data runtime storage usable for types other than meshBrecht Van Lommel
This is in preparation of new object types. This only changes mesh_eval, we may do the same for mesh_deform_eval and other areas in the future if there is a need for it. This previously caused a bug in T74283, that should be fixed now. Differential Revision: https://developer.blender.org/D6695
2020-02-28Revert "Objects: make evaluated data runtime storage usable for types other ↵Brecht Van Lommel
than mesh" This reverts commit f2b95b9eae2ee913c99cff7595527b18d8b49d0a. Fix T74283: modifier display lost when moving object in edit mode. The cause is not immediately obvious so better to revert and look at this carefully.
2020-02-27Objects: make evaluated data runtime storage usable for types other than meshBrecht Van Lommel
This is in preparation of new object types. This only changes mesh_eval, we may do the same for mesh_deform_eval and other areas in the future if there is a need for it. Differential Revision: https://developer.blender.org/D6695
2020-02-03Fix T73045 Crash entering edit mode for "Object Font" instance meshClément Foucault
Font duplicator was not outputing dupli-objects using evaluated object pointers, leading to crash because original object are not supposed to be drawable.
2019-11-22Fix T71273: Bad encoding of utf-8 for Text objectsmano-wii
`BLI_strncpy_wchar_from_utf8` internally assumes `wchar_t` is 32 bits which is not the case on windows. The solution is to replace `wchar_t` with `char32_t`. Thanks to @robbott for compatibility on macOS. Differential Revision: https://developer.blender.org/D6198
2019-09-19Fix T69993: vertex instancing only works on original verticesBrecht Van Lommel
This behavior was accidentally changed in 3e6f37b9, now it works compatible with 2.79 again.
2019-09-14Cleanup: use const args, variablesCampbell Barton
2019-09-10Fix T69702: crash using particles rendered as whole collectionPhilipp Oeser
This happened when the 'Whole Collection' option was enabled next to the 'Use Count' option. These two are exclusive but some code paths only checked for 'Use Count'. Reviewers: brecht Maniphest Tasks: T69702 Differential Revision: https://developer.blender.org/D5741
2019-08-14Cleanup: move trailing comments to avoid wrapping codeCampbell Barton
Some statements were split across multiple lines because of their trailing comments. In most cases it's clearer to put the comments above.
2019-05-15Outliner Restriction: Naming sanitization and iconDalai Felinto
No major API change here, only in the outliner restriction column variables (e.g., show_restrict_column_selectable > show_restrict_column_select). * Get rid of _INSTANCE (introduced on b1af68200159). * Differentiate (everywhere but the API) between HIDE (temporary) and VIEWPORT (global). * Use the expected icon for restrict viewport (same as objects and modifiers). * selectable > select
2019-05-11Outliner Visibility UpdateDalai Felinto
See T61578 for discussions and mockups. Visibility Options ================== We are adding more granular control over restriction columns in the outliner, exposing "indirect only" and "holdout" as options, and change the way users enable/disable collections in a viewlayer. We also rename the object viewport restriction to hide instance. So the options we have are: Collection ---------- * Render Visibility * Instance Visibility * Selectable (View) Layer Collection ----------------------- * Enable * Holdout * Indirect Only * Viewport Shortcuts ========= Isolate Collection ------------------ * Ctr + click isolates the collection. It turns all its parents and children "visible", and all the other collections "invisible". If ALL the collections were already properly set, we re-set the collections to their default value. Set Collection Inside Collections and Objects --------------------------------------------- * Shift + click: Set/unset inside collections and objects. We only set objects values as well when we are in View Layer mode and (obviously) when the objects have a matching property. Icons ===== Little reminder that we will need better icons for holdout, indirect only, and probably instanced (nothing wrong with the current, but it differs from the proposal when it is turned off). Also, we need to decide where do we want the modifier/bones/... icons to be (in which column) and ideally make sure their icons match the ones we use for collections/objects. At the moment those are using the screen icon, which is not being used by collections. Reviewers: brecht, billrey Subscribers: pablovazquez Differential Revision: https://developer.blender.org/D4823
2019-04-27Cleanup: comments (long lines) in blenkernelCampbell Barton
2019-04-22Cleanup: style, use braces for blenkernelCampbell Barton
2019-04-21Cleanup: comments (mainly long lines)Campbell Barton
Comments after code can cause awkward line breaks.
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-28Fix T60735: Cycles render hangs with vertex instancing.Brecht Van Lommel
This should not use the original index as a unique instance index, with for example an array modifier the same original index may be used multiple times.
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-21Fix T60646: From instancer texture coordinate doesn't work in viewportSergey Sharybin
Made it so that generated coordinate is always calculated. Ideally, it will only be done depending on a current shading, but code is quite deep, and doing smarter thing here will end up in way bigger refactor. First, make things working, and then make them fast if they pop up in a profiles.
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.