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
path: root/source
AgeCommit message (Collapse)Author
2018-03-19Fixed typo Python APIJeroen Bakker
`mathutils.geometry.barycentric_transform` used `tri_a[1-3]` for the target triangle, but in fact they are `tri_b[1-3]`
2018-03-18Fix ugly recursive pattern in RNA PointCache data layout.Bastien Montagne
PointCache was having a collection of items of PointCache type, having a collection of items of PointCache type, having... Nuff said. For now, chose the 'ugly' way to fix it, that is, the one that changes nothing to API and scripts using it: we define another 'PointCacheItem' RNA type for items of our point cache collection, which has exact same interface as PointCache except for the collection. This is doomed to be rewritten at some point anyway, not worth spending time trying to define a really correct data layout for now.
2018-03-18Cleanup: kdopbvh, only set parent nodes onceCampbell Barton
2018-03-18Cleanup: use MEM_SAFE_FREECampbell Barton
2018-03-18mathutils: replace interp w/ blend when standaloneCampbell Barton
2018-03-17Refactor: Collada: remove param, changed order of params in Function callGaia Clary
* In the Collada Module parameters are typically ordered in a similar way. I changed this to: extern std::string get_joint_id(Object *ob, Bone *bone); * The Object parameter was not used in get_joint_sid(). I changed this to: extern std::string get_joint_sid(Bone *bone);
2018-03-16Add an assert to BKE_icon_changed() that we are actually dealing with ID icon.Bastien Montagne
Otherwise, ID->obj is an opaque pointer, wrong usage here could lead to a vast amount of bad things.
2018-03-16Fix T54310: Assert when enable Brush custom icon.Bastien Montagne
We had a mix of two issues here actually: * First, Brush are currently using their own sauce for custom previews, this is not great, but moving them to use common ImagePreview system of IDs is a low-priority TODO. For now, they should totally ignore their own ImagePreview. * Second, BKE_icon_changed() would systematically create a PreviewImage for ID types supporting it, which does not really makes sense, this function is merely here to 'tag' previews as outdated. Actual creation of previews is deferred to later, when we actually need them.
2018-03-16Cleanup: naming and const parameter.Bastien Montagne
2018-03-16Depsgraph: Support colored addresses in debug printsSergey Sharybin
Enabled with --debug-depsgraph-pretty, only works with ANSI terminals. Thanks Bastien for review!
2018-03-16Add Truecolor ANSI console constantsSergey Sharybin
They are used to start and end colored output in console. Use with care, it is up to you to check that console actually supports Truecolor ANSII. In thew future we can extend this to other consoles and platforms.
2018-03-16Hash: Add utility function to convert address to rgb valuesSergey Sharybin
Some magic hashing, will become handy to make debug messages easier to follow.
2018-03-16Depsgraph: Move evaluation debug prints to depsgraphSergey Sharybin
This way we can easily control format and keep it consistent. And also possibly do other trickery, like coloring addresses!
2018-03-16Cleanup: move mesh mirror functions to own fileCampbell Barton
2018-03-16Cleanup: doxy sections for editmesh files.Campbell Barton
2018-03-16Fix T54326: Import Alembic stuck in edit modeKévin Dietrich
Switch to object mode before doing the import.
2018-03-16Fix T53971: single layer render showing the wrong render layer in image editor.Cheryl Chen
Original patch Cheryl Chen, extra fixes by Brecht. Differential Revision: https://developer.blender.org/D3098
2018-03-15BLI_assert: extract from BLI_utildefinesCampbell Barton
BLI_utildefines is quite large, defining many unrelated things. Add BLI_assert to include in inline headers, so math defines don't pull in too much.
2018-03-15Missed last commitCampbell Barton
2018-03-15BLI_math: don't use asserts in inline APICampbell Barton
Requires BLI_utildefines.h to be included first, (already noted in other inline code). Possible alternative could be to move BLI_assert into own header.
2018-03-14Style cleanup.Bastien Montagne
2018-03-14Fix (unreported) broken IDarray case in IDP_EqualsProperties_ex.Bastien Montagne
For IDProps IDarray, IDP_EqualsProperties was called for each item, instead of IDP_EqualsProperties_ex, discarding value of `is_strict` option. Probably not an issue with current code, though.
2018-03-14Fix T54319: Crash after double-clicking baked F-curveSergey Sharybin
2018-03-14Cleanup: rename BLI_array_count -> lenCampbell Barton
Match naming convention used everywhere else. Count should only be used when this isn't directly accessible.
2018-03-14Cleanup: use sections for editmesh tools/selectCampbell Barton
2018-03-13Cleanup: pass selectmode directlyCampbell Barton
Pass instead of editmesh or toolsettings. Needed for multi edit-mode
2018-03-13Cleanup: doxygen commentsCampbell Barton
2018-03-13Fix T54302 - Wrong added scene when adding a scene strip to the SequencerJoshua Leung
When adding scene strips to the sequencer, the wrong scenes were getting getting added if some were skipped. For example: Given 4 scenes (A, B, C, D) if you're trying to add the last 3 scenes (B, C, D) as strips to the first scene (A), it would ended up adding "A, B, C" instead of "B, C, D" as expected. Fix provided by Andrew (signal9).
2018-03-13Use Action datablock's own icon (instead of Animation Data's one) for File ↵Joshua Leung
Browser's lib icons
2018-03-13Cleanup: long lines, use doxy sectionsCampbell Barton
2018-03-12Fix type in commentSergey Sharybin
2018-03-12Depsgraph: Make timing profile a command line optionSergey Sharybin
This way we can add even more statistics, even one which will be print to the console. Would be nice if we also have verbosity level control.
2018-03-12Fix T54296: Cycles viewport render stuck on constant re-renderSergey Sharybin
Need Clear ID recalc flag on load. Otherwise it's possible to have some IDs considered always updated by Cycles, when they were saved in a tagged-for-update state. Thanks Bastien for feedback and review!
2018-03-12Cleanup: remove misleading array sizeCampbell Barton
2018-03-12Cleanup: sync EDBM_uv_* functions w/ 2.8Campbell Barton
They're nearly the same, so keep names matching to avoid conflicts.
2018-03-12UV: internal changes to pickingCampbell Barton
Nothing user visible, only things needed for multi-object support, making picking functions more flexible too. - Support passing in an initialized hit-struct, so it's possible to do multiple nearest calls on the same hit data. - Replace manhattan distance w/ squared distance so they can be compared. - Return success to detect changes to a hit-data which might already be initialized (also more readable).
2018-03-11fix Collada: wrong usage of pointer and hidden redeclarationGaia Clary
* Suspicious usage of pointer: short *type = 0; // this creates a null pointer When this is later used for anything then blender would crash. After following the code and check what happens i strongly believe the author wanted to use a short and not a pointer to a short here. * local variable where reused later in same function While this did no harm, i still felt it was better to use a different name here to make things more separated: - moved variable declaraiotns into loop (for int a=0; ...) - renamed uv_images to uv_image_set - renamed index variable from i to j in inner loop that reused same index name from outer loop
2018-03-11Cleanup Collada: Removed duplicate variable settingGaia Clary
2018-03-11Cleanup: avoid redeclaration of iterator in same functionGaia Clary
The iterator was redeclared 3 times. I fixed this to avoid future issues. I commit separately because so the changes are less cluttered all over the place.
2018-03-11Cleanup Collada: Avoid unintentional reuse of previous defined variableGaia Clary
The variable child was redeclared multiple times in the same function. While this has not created any issues i still changed this to avoid confusion and keep the usage of the variables more local.
2018-03-11Fix Collada: Avoid unnecessary and even wrong check on unavailable dataGaia Clary
The function validateConstraints() potentially causes a null pointer exception. I changed this so that the function returns a failure as soon as the validation fails. This avoids falling into the null pointer trap.
2018-03-11Cleanup Collada: Make sure index variables are not reusedGaia Clary
The variables i and j have been declared before in the same function. I changed the names to mi and mj to keep things clear.
2018-03-11Cleanup Collada: make sure float array is initialisedGaia Clary
This is just to silence a compiler warning and keeping the code clean. The actual code never uses uninitialised array elements.
2018-03-11Refactor Collada: combined 2 almost identical functions into oneGaia Clary
The 2 methods add_bezt() and create_bezt() do almost the same. I combined them both into add_bezt() and added the optional parameter eBezTriple_Interpolation ipo
2018-03-11Fix T54274, and rename option --window-borderless to --window-fullscreenArto Kitula
2018-03-11Cleanup: long linesCampbell Barton
2018-03-10Cycles: add roughness baking support, using squared roughness convention.Brecht Van Lommel
2018-03-10Cycles: switch to squared roughness convention for all nodes.Brecht Van Lommel
This was already done for the Principled BSDF to be compatible with typical baked roughness maps in PBR workflows.
2018-03-10Fix T54269: saved EXR file files unreadable some editors in Blender.Brecht Van Lommel
Don't write the multichannel metadata when there is only a single layer, and don't unnecessarily consider single layer images with Blender metadata as multi layer.
2018-03-09Fix Pose Lib: pose is applied when selected bones don't overlap with poseSybren A. Stüvel
Premise: When pose bones are selected, applying a pose library should only affect the selected bones. This commit fixes a bug where the pose was also applied when there was no overlap between the selected bones and the bones in the pose. For example, applying a pose which contains only keyframes for the left hand, while only right-hand bones are selected, would apply the pose to the left hand anyway. The code is now also slightly more efficient; the removed 'selcount' counter was only used as a binary (i.e. zero or non-zero). It's now stored as a bitflag instead.