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-11Particles: Allow python to write hair keysSergey Sharybin
Add a function HairKey.co_object_set() which can be used to modify hair keys positions in a way that hair strands respects the new coordinates, without doing extra trickery with edit mode toggle. The naming comes from existing HairKey.co_object(). The usage is a bit tricky: - The function is to be called on the hair key from an original object. - The arguments are to be passed from evaluated object. Basically: hair_key_orig.co_object_set(object_eval, modifier_eval, particle_eval) This is required because coordinate space conversion needs to know evaluated state of the hair system in order to access hair space matrix. It is a deliberate choice to not pass dependency graph and not to do lookup of evaluated ID on every call of co_object_set() to keep performance on a manageable levels. One requirement is that the hair strands are to be calculated once, by, for example, toggling particle edit mode. Without this there will be no `particles` to access hair keys from in the original object. Such functionality is something what got lost during 2.80 development and is something what is needed here at the studio. Below is the file with more complete example: convert strands from mesh edges to actual particle system hair strands. The viewport refresh is sometimes missing, and this does not seem to be related to this specific change. {F8858104} Differential Revision: https://developer.blender.org/D8849
2020-09-10Fix particle "Mass" option not showing enough precision (appears broken)Julian Eisel
When using the left and right arrows of the number button, the button would seem to do nothing. That is because it modified a value smaller than what is displayed. Show more precision so the button doesn't appear broken.
2020-09-10Fix particle "Loop Count" number button left/right arrows doing nothingJulian Eisel
Was using a step size of 0.1 for an integer. Got caught by sanity assert in UI code.
2020-08-06UI: Fixes and small improvements to some labels and UI messagesYevgeny Makarov
Small tweaks to make labels and texts more correct, consistent and polished. Reviewed by: Aaron Carlisle, Julian Eisel Differential Revision: https://developer.blender.org/D8346
2020-07-22UI: use term 'Vertex' instead of 'Vert'Yevgeny Makarov
2020-07-02UI: Dont abbriviate location & rotationAaron Carlisle
This resolves one of the last few areas where we still use inappropriate abbreviations. Reading abbreviated words is usually slower, because users must parse, guess and translate the words. Using abbreviations such as 'rot' is also especially bad since it's a word in itself too. The main advantage of abbreviations is that they are faster to *write*, which just isn't a concern for text in the UI. Differential Revision: https://developer.blender.org/D8174
2020-06-15Various UI messages fixes...Bastien Montagne
2020-05-08Fix T76498: Refactoring - Rename BKE modifiers funtionsAntonio Vazquez
2020-04-03Code Quality: Replace for loops with LISTBASE_FOREACHDalai Felinto
Note this only changes cases where the variable was declared inside the for loop. To handle it outside as well is a different challenge. Differential Revision: https://developer.blender.org/D7320
2020-04-03Cleanup: Including "BLI_listbase.h" for LISTBASE_FOREACH macroDalai Felinto
These headers are not needed right away, but will be in the upcoming commit.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-11Cleanup: spellingCampbell Barton
2020-03-06Cleanup: use 'BKE_' prefix for BKE_deform API callsCampbell Barton
- Use 'BKE_object_defgroup' prefix for object functions. - Rename 'defvert_verify_index' to 'defvert_ensure_index' since this adds the group if it isn't found.
2020-02-06Fix T73620: Diameter Scale was calles 'Radius'William Reynish
This was left over from when the other properties were renamed.
2020-02-05T73589: Code Quality: Renaming on BKE_material.hAntonio Vazquez
Old Name New Name ========= ========= init_def_material BKE_materials_init BKE_material_gpencil_default_free BKE_materials_exit test_object_materials BKE_object_materials_test test_all_objects_materials BKE_objects_materials_test_all give_matarar BKE_object_material_array give_totcolp BKE_object_material_num give_current_material_p BKE_object_material_get_p give_current_material BKE_object_material_get assign_material BKE_object_material_assign assign_matarar BKE_object_material_array_assign give_matarar_id BKE_id_material_array give_totcolp_id BKE_id_material_num assign_material_id BKE_id_material_assign clear_matcopybuf BKE_material_copybuf_clear free_matcopybuf BKE_material_copybuf_free copy_matcopybuf BKE_material_copybuf_copy paste_matcopybuf BKE_material_copybuf_paste BKE_material_init_gpencil_settings BKE_gpencil_material_attr_init BKE_material_add_gpencil BKE_gpencil_material_add BKE_material_gpencil_get BKE_gpencil_material BKE_material_gpencil_default_get BKE_gpencil_material_default BKE_material_gpencil_settings_get BKE_gpencil_material_settings
2020-02-03Merge branch 'blender-v2.82-release'Brecht Van Lommel
2020-02-03Fix Cycles particle hair rendering broken after recent changesBrecht Van Lommel
This code was already wrong, we were just lucky that the previous coordinate was repeated due to using the same memory location.
2020-02-03Merge branch 'blender-v2.82-release'Sergey Sharybin
2020-02-03Fix T73364: crash calling particle_sytem.co_hair() on disabled particlesBrecht Van Lommel
2020-01-31Merge branch 'blender-v2.82-release'Brecht Van Lommel
2020-01-31Fluid: Fixed secondary particle warningsSebastián Barschkis
This commit fixes the warning that bpy_rna.c470 was producing.
2020-01-20Merge branch 'blender-v2.82-release'Campbell Barton
2020-01-20Fixed secondary particle combined export functionalitySebastián Barschkis
The combined export was using the old flag format.
2020-01-17Fix T51289: Particle System UI issue/annoyance: setting Start later than End ↵Danrae Pray
should increase End if necessary, rather than capping it Reviewed By: Luca Rood, Sebastian Parborg, Julian Eisel Differential Revision: http://developer.blender.org/D2701
2020-01-16Cleanup: Clarification of the `Particle.uv_on_emitter()` function docsSybren A. Stüvel
Just some rewording of the documentation of `Particle.uv_on_emitter()`, so that it no longer refers to 'derived mesh' but 'evaluated mesh', and document that it expects a modifier from an evaluated object. No functional changes.
2020-01-16Fix T73121: Blender crashes on accessing particle uv_on_emitterSybren A. Stüvel
Blender wasn't checking whether the passed modifier actually contained an evaluated mesh, before accessing the mesh pointer.
2020-01-08Revert recent change to the particles RNA, and only affect the UI.William Reynish
Even though the name change is more correct, we don't want to change the API at this time.
2020-01-06Fix T70821: Hair Radius Is Actually Hair DiameterWilliam Reynish
Renamed hair tip and root properties to be called diameter rather than radius. The old name was incorrect.
2019-12-18Cleanup: use ELEM macroCampbell Barton
2019-12-17Fluid: Fix particle settings typeSebastián Barschkis
2019-12-16Mantaflow [Part 6]: Updates in /blender/sourceSebastián Barschkis
A collection of smaller changes that are required in the /blender/source files. A lot of them are also due to variable renaming. Reviewed By: sergey Maniphest Tasks: T59995 Differential Revision: https://developer.blender.org/D3855
2019-09-20UI: Fix CapitalizationYevgeny Makarov
Differential Revision: https://developer.blender.org/D5716
2019-08-23RNA: Cleanup PointerRNA structJacques Lucke
The old layout of `PointerRNA` was confusing for historic reasons: ``` typedef struct PointerRNA { struct { void *data; } id; struct StructRNA *type; void *data; } PointerRNA; ``` This patch updates it to: ``` typedef struct PointerRNA { struct ID *owner_id; struct StructRNA *type; void *data; } PointerRNA; ``` Throughout the code base `id.data` was replaced with `owner_id`. Furthermore, many explicit pointer type casts were added which were implicit before. Some type casts to `ID *` were removed. Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D5558
2019-08-20Liboverride: Add more missing ID RNA pointers as overridable.Bastien Montagne
2019-08-12Fix T68542: ParticleSystem.uv_on_emitter returns always 0,0 while ↵Bastien Montagne
Particle.uv_on_emitter returns a value. 'cached' particles (for paths actually) are only generated for some kind (hair, keyed, and baked system afaik), not for all. Note that we could probably just use directly `totpart` and `totchild`, but keeping code as close to what it was as possible, for now...
2019-08-08Fix T68393: lift hardcoded limit on particle children 'child_radius'Philipp Oeser
Reviewers: jacqueslucke Maniphest Tasks: T68393 Differential Revision: https://developer.blender.org/D5436
2019-07-09Raise particle count limit for 2.8 releaseSergey Sharybin
Blender 2.8 features significant improvements in the creation of particles. Removed hard limit and increased soft limit. Patch by Gottfried Hofmann. Differential Revision: https://developer.blender.org/D5120
2019-06-21Revert "Particle system: Move runtime data to runtime field"Sergey Sharybin
This reverts commit 36faf739a71624b6ca10cec7233779f9eeace0bd. Somewhat annoying but this change had some unforeseen consequences, which lead to an actual bug. Since this change was not sufficient to get original report fixed is easier to simply revert for now. Fixes T65842: Hair disappears when clicking on particle system name
2019-06-13Particle system: Move runtime data to runtime fieldSergey Sharybin
Allows it to be preserved during copy-on-write update when on-geometry related update is needed. This is a required part for T63537, where we need to preserve the entire evaluation data when object is tagged for only RECALC_COPY_ON_WRITE. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D5023
2019-06-03Cleanup: style, use braces in RNACampbell Barton
2019-05-29Fix: Hair Length was using wrong unitWilliam Reynish
2019-05-24Fix T64101: Crash entering edit mode with particle systemSergey Sharybin
Explicitly disable particles in edit for now. Those were not rendered already, but were attempted to be converted to Cycles structures (if UVs were not needed for hair nothing was rendered, but if UVs are needed then crash happened). Would be nice to bring hair in edit mode back, but this is a bit more involved change, which will be done later.
2019-05-20Cleanup: reorder report argument for pointer assignmentCampbell Barton
Most code uses ReportList argument last (or at least not first) when an optional report list can be passed in.
2019-05-17Python: Raise an error even NO_MAIN data is assigned to objectSergey Sharybin
The goal is to prevent assignment of temporary or evaluated meshes to objects from the main database. Majority of the change is actually related on passing reports around. On a positive side there are more error prints which can become more visible to scripters. There are still possible further improvements in the related areas. For example, disable user counting for evaluated ID datablocks when assignment happens. But can also happen later on as a separate improvement. Reviewers: brecht, campbellbarton, mont29 Reviewed By: brecht Differential Revision: https://developer.blender.org/D4884
2019-04-21Cleanup: comments (long lines) in makesrnaCampbell 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-24Cleanup: redundant use of string formatting functionsCampbell Barton
2019-03-17Fix T62589: Particle system Instance Collection option fails to set a user ↵Bastien Montagne
for a linked collection. Forgot to tag properly RNA property in rB439437fa3a44.
2019-03-16Particle: Remove Billboard Particle codeClément Foucault
The billboard particles were only used by Blender Internal. So until it is supported by Cycles of Eevee there is no reason to keep it in the code and UI. Fix T61695 Billboard particles not displaying in Eevee viewport, render
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.