﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3A2.8%2FSource%2FLayersCollections%2FBaseRefactorTasks</id>
	<title>Dev:2.8/Source/LayersCollections/BaseRefactorTasks - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3A2.8%2FSource%2FLayersCollections%2FBaseRefactorTasks"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:2.8/Source/LayersCollections/BaseRefactorTasks&amp;action=history"/>
	<updated>2026-12-01T04:15:53Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:2.8/Source/LayersCollections/BaseRefactorTasks&amp;diff=152931&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:2.8/Source/LayersCollections/BaseRefactorTasks&amp;diff=152931&amp;oldid=prev"/>
		<updated>2018-06-28T21:22:07Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 21:22時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:2.8/Source/LayersCollections/BaseRefactorTasks&amp;diff=152930&amp;oldid=prev</id>
		<title>wiki&gt;Dfelinto: /* Base / object layer */</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:2.8/Source/LayersCollections/BaseRefactorTasks&amp;diff=152930&amp;oldid=prev"/>
		<updated>2017-02-28T11:26:44Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Base / object layer&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Base Refactor Tasks =&lt;br /&gt;
&lt;br /&gt;
As part of the Layer project we moved the Base storage from &amp;#039;&amp;#039;Scene&amp;#039;&amp;#039; to &amp;#039;&amp;#039;SceneLayer&amp;#039;&amp;#039;. Which means that every part in Blender that is referring to Scene.base needs to be updated to reflect that.&lt;br /&gt;
&lt;br /&gt;
Example commits:&lt;br /&gt;
&lt;br /&gt;
* {{GitCommit|rB35290f5d4e}}&lt;br /&gt;
* {{GitCommit|rBbdd3fd64e9}}&lt;br /&gt;
* {{GitCommit|rBae6e9401ab}}&lt;br /&gt;
* {{GitCommit|rBa41bbfb7f3}}&lt;br /&gt;
&lt;br /&gt;
== Which SceneLayer to use ==&lt;br /&gt;
&lt;br /&gt;
Most of the changes are trivial, and boil down to determining which SceneLayer you want to use.&lt;br /&gt;
&lt;br /&gt;
Whenever possible, we should use &amp;#039;&amp;#039;&amp;#039;CTX_data_scene_layer&amp;#039;&amp;#039;&amp;#039; to get the active &amp;#039;&amp;#039;SceneLayer&amp;#039;&amp;#039;. Under the hood this calls &amp;#039;&amp;#039;&amp;#039;BKE_scene_layer_context_active&amp;#039;&amp;#039;&amp;#039;, but it allows for override from Python scripters and (in the future) for different &amp;#039;&amp;#039;SceneLayer&amp;#039;&amp;#039;s in different windows.&lt;br /&gt;
&lt;br /&gt;
In the rare cases when this is not possible, we should use one of the following util functions:&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;BKE_scene_layer_render_active&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;(scene)&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;BKE_scene_layer_context_active&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;(scene)&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Most of the time you will want to use &amp;#039;&amp;#039;BKE_scene_layer_context_active&amp;#039;&amp;#039;, which takes the current &amp;#039;&amp;#039;SceneLayer&amp;#039;&amp;#039; depending on the (yet to be implemented) workspace. In a few cases you want to use &amp;#039;&amp;#039;BKE_scene_layer_render_active&amp;#039;&amp;#039; which is the render layer used when you render (F12). For exporters this may be the preferable option, but that&amp;#039;s up to the developers to decide.&lt;br /&gt;
&lt;br /&gt;
== Base related defines ==&lt;br /&gt;
&lt;br /&gt;
Besides that, the &amp;quot;API&amp;quot; to access the base changed. So now instead of doing &amp;#039;&amp;#039;&amp;#039;OBACT&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;BASACT&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;FIRSTBASE&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;BASE_VISIBLE&amp;#039;&amp;#039;&amp;#039;, ... we do &amp;#039;&amp;#039;&amp;#039;OBACT_NEW&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;BASACT_NEW&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;FIRSTBASE_NEW&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;BASE_VISIBLE_NEW&amp;#039;&amp;#039;&amp;#039;, ..., respectively. For all instances of this see &amp;#039;&amp;#039;DNA_scene_types.h&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Once the Base related code was updated, it&amp;#039;s time to rename any instance of &amp;#039;&amp;#039;&amp;#039;BaseLegacy&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;Base&amp;#039;&amp;#039;&amp;#039;, so we know this part of the code was double-checked.&lt;br /&gt;
&lt;br /&gt;
== Base / object layer ==&lt;br /&gt;
&lt;br /&gt;
We no longer support base-&amp;gt;lay, or ob-&amp;gt;lay. Instead, we should check for base visibility. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
-if ((scene-&amp;gt;lay &amp;amp; (ob-&amp;gt;lay | base-&amp;gt;lay)) == 0)) {&lt;br /&gt;
+if ((base-&amp;gt;flag &amp;amp; VISIBLED) != 0) {&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Extra functions ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;ED_base_object_select&amp;#039;&amp;#039;&amp;#039; should be replaced by &amp;#039;&amp;#039;&amp;#039;ED_object_base_select&amp;#039;&amp;#039;&amp;#039; as well, and any reference to &amp;#039;&amp;#039;(base-&amp;gt;flag &amp;amp; SELECT)&amp;#039;&amp;#039; should be replaced by &amp;#039;&amp;#039;(base-&amp;gt;flag &amp;amp; BASE_SELECTED)&amp;#039;&amp;#039;. I can batch replace them all later. But it&amp;#039;s interesting to do it manually now, so we now which parts of the code are yet to be tackled.&lt;br /&gt;
&lt;br /&gt;
== Patches ==&lt;br /&gt;
&lt;br /&gt;
If you have any patch to address some of the remaining cases, please add &amp;#039;&amp;#039;dfelinto&amp;#039;&amp;#039; as a reviewer so I can take a look at it.&lt;br /&gt;
&lt;br /&gt;
== Stats ==&lt;br /&gt;
&lt;br /&gt;
You can see the daily update of BaseLegacy and the old base defines (OBACT, BASE_EDITABLE_BGMODE, ...) here:&lt;br /&gt;
&lt;br /&gt;
* http://stats.dalaifelinto.com/series/base&lt;br /&gt;
* http://stats.dalaifelinto.com/series/base_defines&lt;br /&gt;
&lt;br /&gt;
We want those graphs to go to zero.&lt;/div&gt;</summary>
		<author><name>wiki&gt;Dfelinto</name></author>
		
	</entry>
</feed>