Cleanup: spelling in comments
This commit is contained in:
parent
4d1593c4ad
commit
98b973294b
|
@ -513,9 +513,9 @@ static void scene_foreach_toolsettings_id_pointer_process(
|
|||
}
|
||||
|
||||
/* We failed to find a new valid pointer for the previous ID, just keep the current one as
|
||||
* if we had been under SCENE_FOREACH_UNDO_NO_RESTORE case.
|
||||
* if we had been under #SCENE_FOREACH_UNDO_NO_RESTORE case.
|
||||
*
|
||||
* There is a nasty twist here though: a prvious call to 'undo_preserve' on the Scene ID may
|
||||
* There is a nasty twist here though: a previous call to 'undo_preserve' on the Scene ID may
|
||||
* have modified it, even though the undo step detected it as unmodified. In such case, the
|
||||
* value of `*id_p` may end up also pointing to an invalid (no more in newly read Main) ID,
|
||||
* se it also needs to be checked from its `session_uuid`. */
|
||||
|
|
|
@ -297,10 +297,10 @@ struct ID *BLO_read_get_new_id_address(BlendLibReader *reader,
|
|||
* Only IDs existing in the newly read Main will be returned. If no matching `session_uuid` in new
|
||||
* main can be found, `nullptr` is returned.
|
||||
*
|
||||
* This expected to be used during liblinking and/or 'undo_preserve' processes in undo case (i.e.
|
||||
* memfile reading), typically to find a valid value (or nullptr) for ID pointers values comming
|
||||
* from the previous, existing Main data, when it is preserved in newly read Main. See e.g. the
|
||||
* #scene_undo_preserve codepath.
|
||||
* This expected to be used during library-linking and/or 'undo_preserve' processes in undo case
|
||||
* (i.e. memfile reading), typically to find a valid value (or nullptr) for ID pointers values
|
||||
* coming from the previous, existing Main data, when it is preserved in newly read Main.
|
||||
* See e.g. the #scene_undo_preserve code-path.
|
||||
*/
|
||||
struct ID *BLO_read_get_new_id_address_from_session_uuid(BlendLibReader *reader, uint session_uuid)
|
||||
ATTR_NONNULL(1);
|
||||
|
|
|
@ -2298,8 +2298,9 @@ static void update_voronoi_node_square_distance(bNodeTree *ntree)
|
|||
}
|
||||
}
|
||||
|
||||
/* Noise and Wave Texture nodes: Restore previous Distortion range.
|
||||
* In 2.81 we used noise() for distortion, now we use snoise() which has twice the range.
|
||||
/**
|
||||
* Noise and Wave Texture nodes: Restore previous Distortion range.
|
||||
* In 2.81 we used `noise()` for distortion, now we use `snoise()` which has twice the range.
|
||||
* To fix this we halve distortion value, directly or by adding multiply node for used sockets.
|
||||
*/
|
||||
static void update_noise_and_wave_distortion(bNodeTree *ntree)
|
||||
|
|
Loading…
Reference in New Issue