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-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-07Fix T62328, T62209: revert recent fix for texture slots updates (T60366).Brecht Van Lommel
This causes other issues, revert for now until a better fix is found. Reverts commit da1323d1c95095feff98e8aa054d73fd323c363d.
2019-03-07Refactor CDData masks, to have one mask per mesh elem type.Bastien Montagne
We already have different storages for cddata of verts, edges etc., 'simply' do the same for the mask flags we use all around Blender code to request some data, or limit some operation to some layers, etc. Reason we need this is that some cddata types (like Normals) are actually shared between verts/polys/loops, and we don’t want to generate clnors everytime we request vnors! As a side note, this also does final fix to T59338, which was the trigger for this patch (need to request computed loop normals for another mesh than evaluated one). Reviewers: brecht, campbellbarton, sergey Differential Revision: https://developer.blender.org/D4407
2019-03-06Cleanup: remove useless extra-processing after BKE_id_new_name_validate() call.Bastien Montagne
This function already handles sorting of ID in its listbase.
2019-03-06Cleanup: rename BKE_library's `new_id()` to `BKE_id_new_name_validate()`.Bastien Montagne
The former was probably one of the worst function names in our whole code base, totally misleading, and quiet often used as a variable name too.
2019-03-06DNA: remove none particle brush & deprecated flagsCampbell Barton
The none brush doesn't make sense to have anymore with the tool system. Also remove deprecated flags & types for object, armature & text.
2019-03-05Fix T61796: Linking a collection with instances inside will place the ↵Bastien Montagne
instanced object in the scene. Do not force to link indirectly linked collections into current scene, that is usually not desired. Note that user can always add this link manually if they want. All this 'implicit instantiation' post-linking process is rather hairy to get it correct, hope this time it's not breaking something else...
2019-03-05Cleanup: rename RENDER_OVERRIDE -> HIDE_OVERLAYSCampbell Barton
Match the UI naming (changed since 2.7x).
2019-03-04Preferences: Add option to disable edit-mode wire AntialiasingClément Foucault
Requested by some users who prefer old wireframe precision. Smooth wires are still enabled by defaults as they don't have a noticeable perf impact. Application restart is needed for changes to take effects.
2019-03-03DNA: rename BezTriple alfa to tiltCampbell Barton
2019-03-03Cleanup: rename FileData.listbase -> bhead_listCampbell Barton
Having the name matching the type isn't so meaningful.
2019-03-02Cleanup: SDNA/DNA namingCampbell Barton
Use 'size' instead of 'len' to represent the size of data in bytes, 'len' is used for the result of 'strlen' or the length of an array in some parts of 'makesdna.c' & 'dna_genfile.c'. Also clarify comments and some variable names, no functional changes.
2019-03-01Fix T61929: crash on undo in some files with local view.Brecht Van Lommel
2019-02-28Fix T60366: texture paint slots not updating when editing material.Brecht Van Lommel
Now always refresh when the material changes. Depsgraph tag moved out of the refresh function since that gets called on depsgraph update, which should not trigger a second depsgraph update.
2019-02-28Revert "Objects: Remove Textured from object display type"Clément Foucault
This reverts commit 6a4a984ff731070d0702821fe1e67dea40e593b9.
2019-02-28Objects: Remove Textured from object display typeClément Foucault
As discussed with @billreynish this makes little sense now that we don't have a dedicated textured mode. We don't have a superior texture or shaded mode anymore and we also cannot mix different engines together (workbench with eevee/lookdev). The only feature it removes is the possibility to hide textures for certain object in solid mode.
2019-02-28Fix T58875: object paste and append Active Collection property not working.Brecht Van Lommel
2019-02-28Cleanup: styleCampbell Barton
2019-02-27Cleanup: better names and comments for library ID linking code.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D4415
2019-02-27Cleanup: use '_pad' convention for padding in all DNA structsCampbell Barton
Avoids mixing these in with regular variables in code-completion. Use char for pad members except for 'void *', to make size clearer. Removed/shrink a few redundant padding vars which were >= 8 bytes.
2019-02-27Cleanup: remove unused Material.pr_lightCampbell Barton
Also no need for 14 bytes of padding.
2019-02-27Cleanup: file rename lamp -> lightCampbell Barton
2019-02-27Cleanup: rename lamp -> lightCampbell Barton
2019-02-27Cleanup: Main struct member namesCampbell Barton
Rename latt to lattice and don't use plural names.
2019-02-27DNA: rename Lamp -> LightCampbell Barton
- BKE_lamp -> BKE_light - Main.lamp -> light
2019-02-26Merge branch 'blender2.7'Brecht Van Lommel
2019-02-26Cleanup: prevent future issues with ID.tag overflow, clarify somes names.Brecht Van Lommel
2019-02-26Bevel mod: cleanup flags and extra data.Howard Trickey
Removed a clnors field unneeded after a recent refactor. Finished deprecation of flags that haven't been used since pre-bmesh.
2019-02-26Cleanup: indentation, trailing spaceCampbell Barton
2019-02-253D View: support for editing cursor rotationCampbell Barton
Add buttons for editing the cursor rotation as well as rotation modes, similar to object and pose bones.
2019-02-25writefile: disable buffering when writing ZLIBCampbell Barton
While Buffering output is useful for file writing and memfile compression it's redundant when the output is already buffered. It doesn't make a significant difference for ZLIB however it makes a moderate improvement for LZ4, see T56162.
2019-02-25readfile: re-enable read on demand for WIN32Campbell Barton
Revert workaround for T61855. It's likely this was caused by slow seek for compressed files since the same behavior happens on Linux T61880.
2019-02-24readfile: minor changes to support other compression formatsCampbell Barton
Allow different readers to re-use the file descriptor.
2019-02-24readfile: Disable delayed data reading for compressed blend filesCampbell Barton
Seeking gzip files is very slow, disable it. Resolves T61880
2019-02-24readfile: use regular file access when not a gzipCampbell Barton
Allows for different behavior w/ compressed files, will also make it simpler to support other compression types, see: T56162
2019-02-24Cleanup: de-duplicate readfile file openingCampbell Barton
2019-02-23readfile: disable delayed data reading for WIN32Campbell Barton
Seeking the file causes slow down on Windows. Resolves T61855
2019-02-22Wireframe: Add object and random coloring option in wireframe modeClément Foucault
The option is separated from the solid mode color option. Random color uses the same method as solid mode. Selection state is indicated by a brighter color that is outside the brightness range of the unselected state colors. The active state is indicated by the outlines that is, now, still drawn in wireframe mode. Coloring of the selection / active outline is not optimal because it can look ugly in some cases of color combination. But the outline color is using index range coloring so it's not trivial to change the color of the outline per object. For now we use the same outline color used in solid mode for consistency and also still add an emphasis on the selected objects. The Single color option uses the theme color. Maybe it would be nice to change the name of it in a latter commit to avoid confusion.
2019-02-22Cleanup: function wrapping, spellingCampbell Barton
2019-02-22Comments: add doxy sections to readfile.cCampbell Barton
Some minor changes to arrange code into useful sections too.
2019-02-22readfile: support blend files over 2gbCampbell Barton
Should work for 4gb+ files too however I wasn't able to test that.
2019-02-22readfile: reduce memory usage at load timeCampbell Barton
Delay loading all DATA sections of the blend file until they're needed. Loading all data-blocks caused high peak memory usage especially with libraries - since a lot of data may exist which isn't used directly. In one test (spring project: 10_010_A.anim.blend), peaked at ~12.5gig, dropping back to ~2.5gig once loaded. With this change peaks memory usage reaches ~2.7gig while loading. Besides this there are some minor gains from not having to read data from the file-system and we can skip an alloc + memcpy reading data written with the same version of Blender.
2019-02-22Cleanup: rename seek to file_offsetCampbell Barton
Prepare for seek callback to be added.
2019-02-22Cleanup: make BHeadN private in readfile.cCampbell Barton
Also add macro for accessing BHeadN from BHead.
2019-02-22Missed last commitCampbell Barton
Harmless but not renamed as intended.
2019-02-22Cleanup: rename readfile API functionsCampbell Barton
- blo_bhead_first (was blo_firstbhead) - blo_bhead_next (was blo_nextbhead) - blo_bhead_prev (was blo_prevbhead) - blo_bhead_id_name (was bhead_id_name) - blo_filedata_free (was blo_freefiledata) - blo_filedata_from_file (was blo_openblenderfile) - blo_filedata_from_memory (was blo_openblendermemory) - blo_filedata_from_memfile (was blo_openblendermemory)
2019-02-22Missed last commitCampbell Barton
2019-02-22Cleanup: comments, use bool for 'eof' variableCampbell Barton
Also remove unused members headerdone, inbuffer & filedes, use typed enum for file data flags.
2019-02-20Cleanup: fix some versioning code running when not needed.Brecht Van Lommel
2019-02-19Fix T61714, T61712: crash reloading images after recent changes.Brecht Van Lommel
Now that we are looping over all image users that were previously ignored, it shows some scene pointers are invalid. Always clear them on load, and don't keep scene permanently in the image user except for the image editor. Otherwise the pointer can go out of date.