Merged stabilization/2106 to development; Resolved merge conflicts
Signed-off-by: Chris Galvan <chgalvan@amazon.com>
This commit is contained in:
+11
-7
@@ -2,10 +2,14 @@
|
|||||||
# Default LFS endpoint for this repository
|
# Default LFS endpoint for this repository
|
||||||
url=https://d3df09qsjufr6g.cloudfront.net/api/v1
|
url=https://d3df09qsjufr6g.cloudfront.net/api/v1
|
||||||
|
|
||||||
# To use the endpoint with your fork:
|
# To use the endpoint with your fork, run the following git command
|
||||||
# 1. uncomment the url line below by removing the '#'
|
# in your local repository (without the '#'), replacing 'owner' with
|
||||||
# 2. replace 'owner' with the username or organization that owns the fork
|
# the username or organization that owns the fork.
|
||||||
# 3. have git ignore your local modification of this file by running
|
#
|
||||||
# git update-index --skip-worktree .lfsconfig
|
# git config lfs.url "https://d3df09qsjufr6g.cloudfront.net/api/v1/fork/owner"
|
||||||
|
#
|
||||||
# url=https://d3df09qsjufr6g.cloudfront.net/api/v1/fork/owner
|
# For example, if your fork is https://github.com/octocat/o3de use
|
||||||
|
# git config lfs.url "https://d3df09qsjufr6g.cloudfront.net/api/v1/fork/octocat"
|
||||||
|
#
|
||||||
|
# IMPORTANT: authenticate with your GitHub username and personal access token
|
||||||
|
# not your GitHub password
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d1c5941f584d35b3d21eb9c311b02698c30499895e9a8c827fb71168e2656255
|
|
||||||
size 1436672
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:5f480ade0a4190f7cb1d7cf286e970f958632d88e19b8c21ead11f838358a750
|
|
||||||
size 369584
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d5eba063346e9163f43bbfec7e71497c847645fb12a3ec573314c9f44afbc801
|
|
||||||
size 364464
|
|
||||||
@@ -47,15 +47,8 @@ set(ENABLED_GEMS
|
|||||||
LmbrCentral
|
LmbrCentral
|
||||||
LyShine
|
LyShine
|
||||||
HttpRequestor
|
HttpRequestor
|
||||||
Atom_AtomBridge
|
Atom
|
||||||
|
AWSCore
|
||||||
|
AWSClientAuth
|
||||||
|
AWSMetrics
|
||||||
)
|
)
|
||||||
|
|
||||||
# TODO remove conditional add once AWSNativeSDK libs are fixed for Android and Linux Monolithic release.
|
|
||||||
set(aws_excluded_platforms Linux Android)
|
|
||||||
if (NOT (LY_MONOLITHIC_GAME AND ${PAL_PLATFORM_NAME} IN_LIST aws_excluded_platforms))
|
|
||||||
list(APPEND ENABLED_GEMS
|
|
||||||
AWSCore
|
|
||||||
AWSClientAuth
|
|
||||||
AWSMetrics
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ if(PAL_TRAIT_BUILD_TESTS_SUPPORTED AND PAL_TRAIT_BUILD_HOST_TOOLS)
|
|||||||
ly_add_pytest(
|
ly_add_pytest(
|
||||||
NAME AutomatedTesting::NvClothTests_Main
|
NAME AutomatedTesting::NvClothTests_Main
|
||||||
TEST_SUITE main
|
TEST_SUITE main
|
||||||
|
TEST_REQUIRES gpu
|
||||||
TEST_SERIAL
|
TEST_SERIAL
|
||||||
PATH ${CMAKE_CURRENT_LIST_DIR}/TestSuite_Active.py
|
PATH ${CMAKE_CURRENT_LIST_DIR}/TestSuite_Active.py
|
||||||
TIMEOUT 1500
|
TIMEOUT 1500
|
||||||
|
|||||||
@@ -20,10 +20,13 @@ from base import TestAutomationBase
|
|||||||
@pytest.mark.parametrize("project", ["AutomatedTesting"])
|
@pytest.mark.parametrize("project", ["AutomatedTesting"])
|
||||||
class TestAutomation(TestAutomationBase):
|
class TestAutomation(TestAutomationBase):
|
||||||
|
|
||||||
|
use_null_renderer = False # Use default renderer (needs gpu)
|
||||||
|
extra_cmdline_args = []
|
||||||
|
|
||||||
def test_C18977329_NvCloth_AddClothSimulationToMesh(self, request, workspace, editor, launcher_platform):
|
def test_C18977329_NvCloth_AddClothSimulationToMesh(self, request, workspace, editor, launcher_platform):
|
||||||
from . import C18977329_NvCloth_AddClothSimulationToMesh as test_module
|
from . import C18977329_NvCloth_AddClothSimulationToMesh as test_module
|
||||||
self._run_test(request, workspace, editor, test_module)
|
self._run_test(request, workspace, editor, test_module, self.extra_cmdline_args, self.use_null_renderer)
|
||||||
|
|
||||||
def test_C18977330_NvCloth_AddClothSimulationToActor(self, request, workspace, editor, launcher_platform):
|
def test_C18977330_NvCloth_AddClothSimulationToActor(self, request, workspace, editor, launcher_platform):
|
||||||
from . import C18977330_NvCloth_AddClothSimulationToActor as test_module
|
from . import C18977330_NvCloth_AddClothSimulationToActor as test_module
|
||||||
self._run_test(request, workspace, editor, test_module)
|
self._run_test(request, workspace, editor, test_module, self.extra_cmdline_args, self.use_null_renderer)
|
||||||
|
|||||||
@@ -103,6 +103,19 @@ if(PAL_TRAIT_BUILD_TESTS_SUPPORTED AND PAL_TRAIT_BUILD_HOST_TOOLS)
|
|||||||
AZ::AssetBundlerBatch
|
AZ::AssetBundlerBatch
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ly_add_pytest(
|
||||||
|
NAME AssetPipelineTests.AssetBundler_SandBox
|
||||||
|
TEST_SUITE sandbox
|
||||||
|
PATH ${CMAKE_CURRENT_LIST_DIR}/asset_bundler_batch_tests.py
|
||||||
|
PYTEST_MARKS "SUITE_sandbox" # run only sandbox tests in this file
|
||||||
|
EXCLUDE_TEST_RUN_TARGET_FROM_IDE
|
||||||
|
TEST_SERIAL
|
||||||
|
TIMEOUT 1500
|
||||||
|
RUNTIME_DEPENDENCIES
|
||||||
|
AZ::AssetProcessor
|
||||||
|
AZ::AssetBundlerBatch
|
||||||
|
)
|
||||||
|
|
||||||
ly_add_pytest(
|
ly_add_pytest(
|
||||||
NAME AssetPipelineTests.AssetBuilder
|
NAME AssetPipelineTests.AssetBuilder
|
||||||
PATH ${CMAKE_CURRENT_LIST_DIR}/asset_builder_tests.py
|
PATH ${CMAKE_CURRENT_LIST_DIR}/asset_builder_tests.py
|
||||||
|
|||||||
+1
@@ -730,6 +730,7 @@ class TestsAssetBundlerBatch_WindowsAndMac(object):
|
|||||||
|
|
||||||
@pytest.mark.BAT
|
@pytest.mark.BAT
|
||||||
@pytest.mark.assetpipeline
|
@pytest.mark.assetpipeline
|
||||||
|
@pytest.mark.SUITE_sandbox
|
||||||
@pytest.mark.test_case_id("C16877174")
|
@pytest.mark.test_case_id("C16877174")
|
||||||
@pytest.mark.test_case_id("C16877175")
|
@pytest.mark.test_case_id("C16877175")
|
||||||
@pytest.mark.test_case_id("C16877178")
|
@pytest.mark.test_case_id("C16877178")
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ class TestAutomationBase:
|
|||||||
cls._kill_ly_processes()
|
cls._kill_ly_processes()
|
||||||
|
|
||||||
|
|
||||||
def _run_test(self, request, workspace, editor, testcase_module, extra_cmdline_args=[]):
|
def _run_test(self, request, workspace, editor, testcase_module, extra_cmdline_args=[], use_null_renderer=True):
|
||||||
test_starttime = time.time()
|
test_starttime = time.time()
|
||||||
self.logger = logging.getLogger(__name__)
|
self.logger = logging.getLogger(__name__)
|
||||||
errors = []
|
errors = []
|
||||||
@@ -89,7 +89,10 @@ class TestAutomationBase:
|
|||||||
editor_starttime = time.time()
|
editor_starttime = time.time()
|
||||||
self.logger.debug("Running automated test")
|
self.logger.debug("Running automated test")
|
||||||
testcase_module_filepath = self._get_testcase_module_filepath(testcase_module)
|
testcase_module_filepath = self._get_testcase_module_filepath(testcase_module)
|
||||||
pycmd = ["--runpythontest", testcase_module_filepath, "-BatchMode", "-autotest_mode", "-rhi=null"] + extra_cmdline_args
|
pycmd = ["--runpythontest", testcase_module_filepath, "-BatchMode", "-autotest_mode"]
|
||||||
|
if use_null_renderer:
|
||||||
|
pycmd += ["-rhi=null"]
|
||||||
|
pycmd += extra_cmdline_args
|
||||||
editor.args.extend(pycmd) # args are added to the WinLauncher start command
|
editor.args.extend(pycmd) # args are added to the WinLauncher start command
|
||||||
editor.start(backupFiles = False, launch_ap = False)
|
editor.start(backupFiles = False, launch_ap = False)
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -58,8 +58,11 @@ class TestFileMenuDefaultNewOpen:
|
|||||||
sc_main = sc.findChild(QtWidgets.QMainWindow)
|
sc_main = sc.findChild(QtWidgets.QMainWindow)
|
||||||
sc_tabs = sc_main.findChild(QtWidgets.QTabWidget, "ScriptCanvasTabs")
|
sc_tabs = sc_main.findChild(QtWidgets.QTabWidget, "ScriptCanvasTabs")
|
||||||
|
|
||||||
# 3) Trigger File->New action
|
# wait for the intial tab count
|
||||||
|
general.idle_wait(GENERAL_WAIT)
|
||||||
initial_tabs_count = sc_tabs.count()
|
initial_tabs_count = sc_tabs.count()
|
||||||
|
|
||||||
|
# 3) Trigger File->New action
|
||||||
action = pyside_utils.find_child_by_pattern(
|
action = pyside_utils.find_child_by_pattern(
|
||||||
sc_main, {"objectName": "action_New_Script", "type": QtWidgets.QAction}
|
sc_main, {"objectName": "action_New_Script", "type": QtWidgets.QAction}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ if(PAL_TRAIT_BUILD_TESTS_SUPPORTED AND PAL_TRAIT_BUILD_HOST_TOOLS)
|
|||||||
|
|
||||||
ly_add_pytest(
|
ly_add_pytest(
|
||||||
NAME AutomatedTesting::GameLauncherWithGPU
|
NAME AutomatedTesting::GameLauncherWithGPU
|
||||||
|
TEST_SUITE sandbox
|
||||||
TEST_REQUIRES gpu
|
TEST_REQUIRES gpu
|
||||||
PATH ${CMAKE_CURRENT_LIST_DIR}/test_GameLauncher_EnterExitGameMode_Works.py
|
PATH ${CMAKE_CURRENT_LIST_DIR}/test_GameLauncher_EnterExitGameMode_Works.py
|
||||||
TIMEOUT 100
|
TIMEOUT 100
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:cf6d56fe4c367d39bd78500dd34332fcad57ad41241768b52781dbdb60ddd972
|
|
||||||
size 347568
|
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:61efd8df621780af995fc1250918df5e00364ff00f849bef67702cd4b0a152e1
|
oid sha256:41239f8345fa91fe546442208461ad3cd17c7a7a7047af45018b97363bfea204
|
||||||
size 65537
|
size 109783
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:e4901093fa6190bf37291b0fb6de23fba1be8ebbd742775a8565a4106722fbb6
|
oid sha256:ebfc95bd4c0cbcc53d0ef9d314d26e09a347a22dabbf210597f405d9ed8646bf
|
||||||
size 31942
|
size 7729
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:e4ae97c4f44910121a61686862c8342ce598db4cdf9d46b29e96d3cb9e43bd06
|
oid sha256:99cb7da9282cfcfa64598455827f27ca6791d45ca0d2c3c2dc090d82468dac03
|
||||||
size 22158
|
size 4447
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:061e2d0ce8dc852dd298c80f2aed5fee8ea4b87511c00662aa2d00922c0ba3c2
|
oid sha256:101568e946f1d4cea86d666187bbf71116bbf62e6eaf6d80bc3c5e2e184bdb15
|
||||||
size 30162
|
size 7938
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:0fb4b4b77620d99dae7473b7bd8affe14630419835bd5719167ed200e657fa4f
|
oid sha256:cf930ffd4efb0b7b627e05aac6e0f56252ea206623e8b5d097d803aa315cdfb8
|
||||||
size 17504
|
size 1812
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:8aa9b1194f3244025578225a6a87cbc2dd12c70955ff615c8af640ea7f1334f1
|
oid sha256:ba5fea53b349e254b4625035a308d5731cb06f6d0adc278874d14db2627962cb
|
||||||
size 19619
|
size 3424
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:0c25ffb1af8160b3202977de8c32aaa235e22c643ffd8004e4546c96868ef3b9
|
oid sha256:cf087f357cd439d14651073ac079542c60f0648a30dced2a8d19912124b3f8b6
|
||||||
size 18317
|
size 2310
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:2db961b8f922a552d8ad374fdb56029efd4049a6cde10399b3d961242c82ce53
|
oid sha256:421ad4db14c28ed18666158f9ec30747c5b8c757405c1efb32442978911b0c06
|
||||||
size 22571
|
size 4437
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:f39d897a57d4da0a70ede7c91339660b28e9d8c57b3e7d749807b13baa4b85f3
|
oid sha256:0d0044ebf7e0a5dd23ed64a1289c705d8f6c3c41a62d65e5a1371058855b8cec
|
||||||
size 28559
|
size 6546
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:263b75d58328499eef1f8fa2e64c30706f546badcc0c4464a043b231da93cd0d
|
oid sha256:3b8717c5f2109dfce1bf7b017278059d4915b524a6eb7e83cfb1926e54ed6869
|
||||||
size 34969
|
size 7383
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:33522ad8a8e826b22dd9ad214f56e63e24bf55c00bd8c845925d848b855dfb48
|
oid sha256:ba5fea53b349e254b4625035a308d5731cb06f6d0adc278874d14db2627962cb
|
||||||
size 19619
|
size 3424
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:f405c9f3d908d038aea26049e533b0d10955adfac370c7b3b80209997ea706d0
|
oid sha256:a32908a839a6cb0ca2a76d6aa60376ba8a14b4428f06c13149ec277514eb5676
|
||||||
size 24407
|
size 4533
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:d110f6e151799a2327bcdf5ef94d6fc82b114783a8cc973a8915896679ba4a80
|
oid sha256:0d0044ebf7e0a5dd23ed64a1289c705d8f6c3c41a62d65e5a1371058855b8cec
|
||||||
size 28559
|
size 6546
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:db8f00568fad4e49b05249aaa7a48c9fbf85c8b7a78489c83dc9b8161778bcef
|
oid sha256:421ad4db14c28ed18666158f9ec30747c5b8c757405c1efb32442978911b0c06
|
||||||
size 22571
|
size 4437
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:e4901093fa6190bf37291b0fb6de23fba1be8ebbd742775a8565a4106722fbb6
|
oid sha256:ebfc95bd4c0cbcc53d0ef9d314d26e09a347a22dabbf210597f405d9ed8646bf
|
||||||
size 31942
|
size 7729
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:e4ae97c4f44910121a61686862c8342ce598db4cdf9d46b29e96d3cb9e43bd06
|
oid sha256:99cb7da9282cfcfa64598455827f27ca6791d45ca0d2c3c2dc090d82468dac03
|
||||||
size 22158
|
size 4447
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:061e2d0ce8dc852dd298c80f2aed5fee8ea4b87511c00662aa2d00922c0ba3c2
|
oid sha256:101568e946f1d4cea86d666187bbf71116bbf62e6eaf6d80bc3c5e2e184bdb15
|
||||||
size 30162
|
size 7938
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:0fb4b4b77620d99dae7473b7bd8affe14630419835bd5719167ed200e657fa4f
|
oid sha256:cf930ffd4efb0b7b627e05aac6e0f56252ea206623e8b5d097d803aa315cdfb8
|
||||||
size 17504
|
size 1812
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:8aa9b1194f3244025578225a6a87cbc2dd12c70955ff615c8af640ea7f1334f1
|
oid sha256:ba5fea53b349e254b4625035a308d5731cb06f6d0adc278874d14db2627962cb
|
||||||
size 19619
|
size 3424
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:0c25ffb1af8160b3202977de8c32aaa235e22c643ffd8004e4546c96868ef3b9
|
oid sha256:cf087f357cd439d14651073ac079542c60f0648a30dced2a8d19912124b3f8b6
|
||||||
size 18317
|
size 2310
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:2db961b8f922a552d8ad374fdb56029efd4049a6cde10399b3d961242c82ce53
|
oid sha256:421ad4db14c28ed18666158f9ec30747c5b8c757405c1efb32442978911b0c06
|
||||||
size 22571
|
size 4437
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:f39d897a57d4da0a70ede7c91339660b28e9d8c57b3e7d749807b13baa4b85f3
|
oid sha256:0d0044ebf7e0a5dd23ed64a1289c705d8f6c3c41a62d65e5a1371058855b8cec
|
||||||
size 28559
|
size 6546
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:263b75d58328499eef1f8fa2e64c30706f546badcc0c4464a043b231da93cd0d
|
oid sha256:3b8717c5f2109dfce1bf7b017278059d4915b524a6eb7e83cfb1926e54ed6869
|
||||||
size 34969
|
size 7383
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:33522ad8a8e826b22dd9ad214f56e63e24bf55c00bd8c845925d848b855dfb48
|
oid sha256:ba5fea53b349e254b4625035a308d5731cb06f6d0adc278874d14db2627962cb
|
||||||
size 19619
|
size 3424
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:f405c9f3d908d038aea26049e533b0d10955adfac370c7b3b80209997ea706d0
|
oid sha256:a32908a839a6cb0ca2a76d6aa60376ba8a14b4428f06c13149ec277514eb5676
|
||||||
size 24407
|
size 4533
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:d110f6e151799a2327bcdf5ef94d6fc82b114783a8cc973a8915896679ba4a80
|
oid sha256:0d0044ebf7e0a5dd23ed64a1289c705d8f6c3c41a62d65e5a1371058855b8cec
|
||||||
size 28559
|
size 6546
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:db8f00568fad4e49b05249aaa7a48c9fbf85c8b7a78489c83dc9b8161778bcef
|
oid sha256:421ad4db14c28ed18666158f9ec30747c5b8c757405c1efb32442978911b0c06
|
||||||
size 22571
|
size 4437
|
||||||
|
|||||||
+1
-37
@@ -1,41 +1,5 @@
|
|||||||
{
|
{
|
||||||
"images" : [
|
"images" : [
|
||||||
{
|
|
||||||
"extent" : "full-screen",
|
|
||||||
"filename" : "iPhoneLaunchImage1242x2688.png",
|
|
||||||
"idiom" : "iphone",
|
|
||||||
"minimum-system-version" : "12.0",
|
|
||||||
"orientation" : "portrait",
|
|
||||||
"scale" : "3x",
|
|
||||||
"subtype" : "2688h"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"extent" : "full-screen",
|
|
||||||
"filename" : "iPhoneLaunchImage2688x1242.png",
|
|
||||||
"idiom" : "iphone",
|
|
||||||
"minimum-system-version" : "12.0",
|
|
||||||
"orientation" : "landscape",
|
|
||||||
"scale" : "3x",
|
|
||||||
"subtype" : "2688h"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"extent" : "full-screen",
|
|
||||||
"filename" : "iPhoneLaunchImage828x1792.png",
|
|
||||||
"idiom" : "iphone",
|
|
||||||
"minimum-system-version" : "12.0",
|
|
||||||
"orientation" : "portrait",
|
|
||||||
"scale" : "2x",
|
|
||||||
"subtype" : "1792h"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"extent" : "full-screen",
|
|
||||||
"filename" : "iPhoneLaunchImage1792x828.png",
|
|
||||||
"idiom" : "iphone",
|
|
||||||
"minimum-system-version" : "12.0",
|
|
||||||
"orientation" : "landscape",
|
|
||||||
"scale" : "2x",
|
|
||||||
"subtype" : "1792h"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"extent" : "full-screen",
|
"extent" : "full-screen",
|
||||||
"idiom" : "iphone",
|
"idiom" : "iphone",
|
||||||
@@ -202,4 +166,4 @@
|
|||||||
"version" : 1,
|
"version" : 1,
|
||||||
"author" : "xcode"
|
"author" : "xcode"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:31afa7ed44c5d9844c8d6ce08beccac482c3f43590869a3d190d06e2df377ccc
|
oid sha256:a4018d9df45b4a04d4cf24a40fe01aa7e30e44a9fdd8ad9a41b0d87791786c12
|
||||||
size 137472
|
size 30442
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:0aac8ef9899442820bec0df8bf6434a46cc787d57c5d6d38a04727b8dc310048
|
oid sha256:2eea06cb8ad05acefe9664551af5645d52d9763b82473b1fd4a2b2b6f62e96d3
|
||||||
size 338281
|
size 53550
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:c07495891f15b138ba09f142777b0f43217bf8be05cbb74ba938319f3425980c
|
oid sha256:90991aca91ab7222fdb85c03947cff38f549a6492551e7447e0c8f55022aae48
|
||||||
size 321125
|
size 52467
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:d6bf6acb92421a453a36fc143ab6cefda14d631ea5e6dbf95c6e252a445fcbac
|
oid sha256:6c8439a64d18dbff17dd67f6405bf49f99695e9b22fc2cc541dc72c6e3167307
|
||||||
size 144797
|
size 30564
|
||||||
|
|||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:fc79117e25cc7533ccf6724453e3f44a01b4eaaecded6fa826abe897456f36ee
|
|
||||||
size 405896
|
|
||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:6c7191be3bdae09dc621012a26b0c1b9c15de1d567cf65ff1079e00f8636a32a
|
|
||||||
size 220720
|
|
||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:dfbd362f9cb5f285c23807a032af98150cf5409c514445122683736a3c65008c
|
|
||||||
size 364976
|
|
||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:e9ad650fda925b1c076a67d1ef70315fe4f14db888c9fd36ee4eba1d18c1e7d1
|
oid sha256:f752615184160d7a78f28d9eef354c86e544f11eb1dde9f651d7acd315b3f2e6
|
||||||
size 166749
|
size 35934
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:16f6e9d7bd15fc528d934c252213de8792812e708b1810191c5f1767f7165852
|
oid sha256:1a43f1d893e85aa99d335a657ec0f6c13a741db976c033451ab9a2328b8a5970
|
||||||
size 142331
|
size 35559
|
||||||
|
|||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:b0252b068b232f521ac6eca4a708fad6eaf257d0a66aa03f4f865f6a0b219cfc
|
|
||||||
size 236433
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7c8433178baebafe984ca23d9325d3c71b5a177fc3b3b869afbb01a583542fbe
|
||||||
|
size 462842
|
||||||
+2
-2
@@ -33,7 +33,7 @@
|
|||||||
{
|
{
|
||||||
"size" : "128x128",
|
"size" : "128x128",
|
||||||
"idiom" : "mac",
|
"idiom" : "mac",
|
||||||
"filename" : "icon_128 _2x.png",
|
"filename" : "icon_128_2x.png",
|
||||||
"scale" : "2x"
|
"scale" : "2x"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
{
|
{
|
||||||
"size" : "256x256",
|
"size" : "256x256",
|
||||||
"idiom" : "mac",
|
"idiom" : "mac",
|
||||||
"filename" : "icon_256 _2x.png",
|
"filename" : "icon_256_2x.png",
|
||||||
"scale" : "2x"
|
"scale" : "2x"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:e38257b6917cdf5d73e90e6009f10c8736d62b20c4e785085305075c7e6320e2
|
|
||||||
size 32037
|
|
||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:9f41a37d2347a617e93bd97adaf6d4c161c471ca3ef7e04b98c65ddda52396dc
|
oid sha256:f3c651ca45a83d0f68bdaa466826a29b2ca6f674e225d90e68b7dbadc2ba582d
|
||||||
size 27833
|
size 6620
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:b07984494059bf827bc485cbea06d12e0283811face1a18799495f9ba7ae8af1
|
oid sha256:f7d5b15add5104d91a03df7d86898f4bc415d095d11c23555b24440497371948
|
||||||
size 20779
|
size 1061
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:e645142d284de40aafb7a4a858f3df92b6a5ba9b03fa5f1a2d3cb25211597926
|
oid sha256:148fdae6493d7b7e1bb6cc6aae1861e0469838f54dcb3c15cc157a548c707fec
|
||||||
size 21857
|
size 1910
|
||||||
|
|||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:07631f41b8dea80713d2463f81a713a9a93798975b6fb50afbeeb13d26c57fa2
|
|
||||||
size 48899
|
|
||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:e38257b6917cdf5d73e90e6009f10c8736d62b20c4e785085305075c7e6320e2
|
oid sha256:094620c172320b062f9a1f8cc758ef4bbee11bc0a6049f46ad6b42f9bf613c92
|
||||||
size 32037
|
size 9679
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:e645142d284de40aafb7a4a858f3df92b6a5ba9b03fa5f1a2d3cb25211597926
|
oid sha256:148fdae6493d7b7e1bb6cc6aae1861e0469838f54dcb3c15cc157a548c707fec
|
||||||
size 21857
|
size 1910
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:ad83faf98b49f4e37112baedeae726f4f8d71bcdd1961d9cdad31f043f8ca666
|
oid sha256:749bcd29d73e5ef2d1ef8b2d878626d0bca09c6b0d5f1c9dc6cefe7b9082c8cc
|
||||||
size 24003
|
size 3758
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:68529a6c11d5ffa7ecd9d5bbb11ceea28e6852bd45946b525af09602c9a1e1bf
|
oid sha256:934502e242ff7a2e34e21eed1424b5e0953e701761d158520b3297944132328e
|
||||||
size 48899
|
size 18716
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:8a70003840b418848b2ce6c18ed7cbbfcd6fcf76598a6601dca8b98d9b6c1a2f
|
oid sha256:5719043940db268dccd2e20bd9d6aa13131890d43edf002a173714ae33890422
|
||||||
size 114706
|
size 29510
|
||||||
|
|||||||
@@ -1,16 +1,12 @@
|
|||||||
{
|
{
|
||||||
"GemFormatVersion": 4,
|
"gem_name": "AutomatedTesting",
|
||||||
"Uuid": "afc25e1593194d6283d9ff744ab6d5a1",
|
"display_name": "AutomatedTesting",
|
||||||
"Name": "AutomatedTesting",
|
"license": "Apache-2.0 Or MIT",
|
||||||
"DisplayName": "AutomatedTesting",
|
"origin": "Amazon Web Services, Inc.",
|
||||||
"Version": "0.1.0",
|
"type": "Code",
|
||||||
"Summary": "A short description of my Gem.",
|
"summary": "Project Gem for customizing the AutomatedTesting project functionality.",
|
||||||
"Tags": ["Game"],
|
"canonical_tags": ["Gem"],
|
||||||
"IconPath": "preview.png",
|
"user_tags": [],
|
||||||
"IsGameGem": true,
|
"icon_path": "preview.png",
|
||||||
"Modules": [
|
"requirements": ""
|
||||||
{
|
|
||||||
"Type": "GameModule"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
+3744
-3799
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:ec428aee9c49ffd58a00fdcbb0625185a22f5690f7b2e81326ef5443699019e6
|
oid sha256:e04b536d187793187b64a55914d92c1a1c18393a0369715269a295c7b7a7d370
|
||||||
size 10945
|
size 8883
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ CAboutDialog::CAboutDialog(QString versionText, QString richTextCopyrightNotice,
|
|||||||
CAboutDialog > QLabel#link { text-decoration: underline; color: #94D2FF; }");
|
CAboutDialog > QLabel#link { text-decoration: underline; color: #94D2FF; }");
|
||||||
|
|
||||||
// Prepare background image
|
// Prepare background image
|
||||||
QImage backgroundImage(QStringLiteral(":/StartupLogoDialog/splashscreen_background_gradient.jpg"));
|
QImage backgroundImage(QStringLiteral(":/StartupLogoDialog/splashscreen_background_developer_preview.jpg"));
|
||||||
m_backgroundImage = QPixmap::fromImage(backgroundImage.scaled(m_enforcedWidth, m_enforcedHeight, Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
|
m_backgroundImage = QPixmap::fromImage(backgroundImage.scaled(m_enforcedWidth, m_enforcedHeight, Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
|
||||||
|
|
||||||
// Draw the Open 3D Engine logo from svg
|
// Draw the Open 3D Engine logo from svg
|
||||||
|
|||||||
@@ -111,7 +111,6 @@ ly_add_target(
|
|||||||
AZ::AzCore
|
AZ::AzCore
|
||||||
AZ::AzToolsFramework
|
AZ::AzToolsFramework
|
||||||
Gem::LmbrCentral.Static
|
Gem::LmbrCentral.Static
|
||||||
Legacy::NewsShared
|
|
||||||
AZ::AWSNativeSDKInit
|
AZ::AWSNativeSDKInit
|
||||||
AZ::AtomCore
|
AZ::AtomCore
|
||||||
Gem::Atom_RPI.Edit
|
Gem::Atom_RPI.Edit
|
||||||
|
|||||||
@@ -463,25 +463,7 @@ void EditorViewportWidget::Update()
|
|||||||
SetFOV(cameraState.m_fovOrZoom);
|
SetFOV(cameraState.m_fovOrZoom);
|
||||||
m_Camera.SetZRange(cameraState.m_nearClip, cameraState.m_farClip);
|
m_Camera.SetZRange(cameraState.m_nearClip, cameraState.m_farClip);
|
||||||
}
|
}
|
||||||
else if (!ed_useNewCameraSystem)
|
|
||||||
{
|
|
||||||
m_renderViewport->GetViewportContext()->SetCameraTransform(LYTransformToAZTransform(m_Camera.GetMatrix()));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Don't override the game mode FOV
|
|
||||||
if (!GetIEditor()->IsInGameMode())
|
|
||||||
{
|
|
||||||
AZ::Matrix4x4 clipMatrix;
|
|
||||||
AZ::MakePerspectiveFovMatrixRH(
|
|
||||||
clipMatrix,
|
|
||||||
GetFOV(),
|
|
||||||
aznumeric_cast<float>(width()) / aznumeric_cast<float>(height()),
|
|
||||||
m_Camera.GetNearPlane(),
|
|
||||||
m_Camera.GetFarPlane(),
|
|
||||||
true
|
|
||||||
);
|
|
||||||
m_renderViewport->GetViewportContext()->SetCameraProjectionMatrix(clipMatrix);
|
|
||||||
}
|
|
||||||
// Reset the camera update flag now that we're finished updating our viewport context
|
// Reset the camera update flag now that we're finished updating our viewport context
|
||||||
m_updateCameraPositionNextTick = false;
|
m_updateCameraPositionNextTick = false;
|
||||||
|
|
||||||
@@ -637,7 +619,6 @@ void EditorViewportWidget::SetViewEntity(const AZ::EntityId& viewEntityId, bool
|
|||||||
void EditorViewportWidget::ResetToViewSourceType(const ViewSourceType& viewSourceType)
|
void EditorViewportWidget::ResetToViewSourceType(const ViewSourceType& viewSourceType)
|
||||||
{
|
{
|
||||||
LockCameraMovement(true);
|
LockCameraMovement(true);
|
||||||
m_pCameraFOVVariable = nullptr;
|
|
||||||
m_viewEntityId.SetInvalid();
|
m_viewEntityId.SetInvalid();
|
||||||
m_cameraObjectId = GUID_NULL;
|
m_cameraObjectId = GUID_NULL;
|
||||||
m_viewSourceType = viewSourceType;
|
m_viewSourceType = viewSourceType;
|
||||||
@@ -2416,13 +2397,26 @@ void EditorViewportWidget::CenterOnSliceInstance()
|
|||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
void EditorViewportWidget::SetFOV(float fov)
|
void EditorViewportWidget::SetFOV(float fov)
|
||||||
{
|
{
|
||||||
if (m_pCameraFOVVariable)
|
if (m_viewEntityId.IsValid())
|
||||||
{
|
{
|
||||||
m_pCameraFOVVariable->Set(fov);
|
Camera::CameraRequestBus::Event(m_viewEntityId, &Camera::CameraComponentRequests::SetFov, AZ::RadToDeg(fov));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_camFOV = fov;
|
m_camFOV = fov;
|
||||||
|
// Set the active camera's FOV
|
||||||
|
{
|
||||||
|
AZ::Matrix4x4 clipMatrix;
|
||||||
|
AZ::MakePerspectiveFovMatrixRH(
|
||||||
|
clipMatrix,
|
||||||
|
GetFOV(),
|
||||||
|
aznumeric_cast<float>(width()) / aznumeric_cast<float>(height()),
|
||||||
|
m_Camera.GetNearPlane(),
|
||||||
|
m_Camera.GetFarPlane(),
|
||||||
|
true
|
||||||
|
);
|
||||||
|
m_renderViewport->GetViewportContext()->SetCameraProjectionMatrix(clipMatrix);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_viewPane)
|
if (m_viewPane)
|
||||||
@@ -2449,13 +2443,7 @@ float EditorViewportWidget::GetFOV() const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_pCameraFOVVariable)
|
if (m_viewEntityId.IsValid())
|
||||||
{
|
|
||||||
float fov;
|
|
||||||
m_pCameraFOVVariable->Get(fov);
|
|
||||||
return fov;
|
|
||||||
}
|
|
||||||
else if (m_viewEntityId.IsValid())
|
|
||||||
{
|
{
|
||||||
float fov = AZ::RadToDeg(m_camFOV);
|
float fov = AZ::RadToDeg(m_camFOV);
|
||||||
Camera::CameraRequestBus::EventResult(fov, m_viewEntityId, &Camera::CameraComponentRequests::GetFov);
|
Camera::CameraRequestBus::EventResult(fov, m_viewEntityId, &Camera::CameraComponentRequests::GetFov);
|
||||||
|
|||||||
@@ -505,7 +505,6 @@ protected:
|
|||||||
|
|
||||||
CPredefinedAspectRatios m_predefinedAspectRatios;
|
CPredefinedAspectRatios m_predefinedAspectRatios;
|
||||||
|
|
||||||
IVariable* m_pCameraFOVVariable = nullptr;
|
|
||||||
bool m_bCursorHidden = false;
|
bool m_bCursorHidden = false;
|
||||||
|
|
||||||
void OnMenuResolutionCustom();
|
void OnMenuResolutionCustom();
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ AZ_POP_DISABLE_WARNING
|
|||||||
|
|
||||||
// AzToolsFramework
|
// AzToolsFramework
|
||||||
#include <AzToolsFramework/Application/Ticker.h>
|
#include <AzToolsFramework/Application/Ticker.h>
|
||||||
|
#include <AzToolsFramework/API/EditorWindowRequestBus.h>
|
||||||
#include <AzToolsFramework/API/EditorAnimationSystemRequestBus.h>
|
#include <AzToolsFramework/API/EditorAnimationSystemRequestBus.h>
|
||||||
#include <AzToolsFramework/SourceControl/QtSourceControlNotificationHandler.h>
|
#include <AzToolsFramework/SourceControl/QtSourceControlNotificationHandler.h>
|
||||||
#include <AzToolsFramework/PythonTerminal/ScriptTermDialog.h>
|
#include <AzToolsFramework/PythonTerminal/ScriptTermDialog.h>
|
||||||
@@ -93,6 +94,8 @@ AZ_POP_DISABLE_WARNING
|
|||||||
#include "AssetEditor/AssetEditorWindow.h"
|
#include "AssetEditor/AssetEditorWindow.h"
|
||||||
#include "ActionManager.h"
|
#include "ActionManager.h"
|
||||||
|
|
||||||
|
#include <ImGuiBus.h>
|
||||||
|
|
||||||
using namespace AZ;
|
using namespace AZ;
|
||||||
using namespace AzQtComponents;
|
using namespace AzQtComponents;
|
||||||
using namespace AzToolsFramework;
|
using namespace AzToolsFramework;
|
||||||
@@ -489,6 +492,16 @@ void MainWindow::Initialize()
|
|||||||
ActionOverrideRequestBus::Event(
|
ActionOverrideRequestBus::Event(
|
||||||
GetEntityContextId(), &ActionOverrideRequests::SetupActionOverrideHandler, this);
|
GetEntityContextId(), &ActionOverrideRequests::SetupActionOverrideHandler, this);
|
||||||
|
|
||||||
|
if (auto imGuiManager = AZ::Interface<ImGui::IImGuiManager>::Get())
|
||||||
|
{
|
||||||
|
auto handleImGuiStateChangeFn = [](bool enabled)
|
||||||
|
{
|
||||||
|
EditorWindowUIRequestBus::Broadcast(&EditorWindowUIRequests::SetEditorUiEnabled, enabled);
|
||||||
|
};
|
||||||
|
m_handleImGuiStateChangeHandler = ImGui::IImGuiManager::ImGuiSetEnabledEvent::Handler(handleImGuiStateChangeFn);
|
||||||
|
imGuiManager->ConnectImGuiSetEnabledChangedHandler(m_handleImGuiStateChangeHandler);
|
||||||
|
}
|
||||||
|
|
||||||
AzToolsFramework::EditorEventsBus::Broadcast(&AzToolsFramework::EditorEvents::NotifyMainWindowInitialized, this);
|
AzToolsFramework::EditorEventsBus::Broadcast(&AzToolsFramework::EditorEvents::NotifyMainWindowInitialized, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,6 +249,7 @@ private:
|
|||||||
|
|
||||||
QPointer<ToolbarCustomizationDialog> m_toolbarCustomizationDialog;
|
QPointer<ToolbarCustomizationDialog> m_toolbarCustomizationDialog;
|
||||||
QScopedPointer<AzToolsFramework::QtSourceControlNotificationHandler> m_sourceControlNotifHandler;
|
QScopedPointer<AzToolsFramework::QtSourceControlNotificationHandler> m_sourceControlNotifHandler;
|
||||||
|
AZ::Event<bool>::Handler m_handleImGuiStateChangeHandler;
|
||||||
AZ_POP_DISABLE_DLL_EXPORT_MEMBER_WARNING
|
AZ_POP_DISABLE_DLL_EXPORT_MEMBER_WARNING
|
||||||
|
|
||||||
static MainWindow* m_instance;
|
static MainWindow* m_instance;
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ ly_add_target(
|
|||||||
BUILD_DEPENDENCIES
|
BUILD_DEPENDENCIES
|
||||||
PRIVATE
|
PRIVATE
|
||||||
3rdParty::Qt::Core
|
3rdParty::Qt::Core
|
||||||
|
3rdParty::Qt::Widgets
|
||||||
AZ::AzCore
|
AZ::AzCore
|
||||||
AZ::AzToolsFramework
|
AZ::AzToolsFramework
|
||||||
Legacy::CryCommon
|
Legacy::CryCommon
|
||||||
|
|||||||
+2
@@ -66,3 +66,5 @@ namespace EntityOutliner
|
|||||||
emit OnOptionToggled(DisplayOption::AutoExpand, checked);
|
emit OnOptionToggled(DisplayOption::AutoExpand, checked);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include <UI/Outliner/moc_OutlinerDisplayOptionsMenu.cpp>
|
||||||
|
|||||||
+18
-1
@@ -32,7 +32,24 @@ bool OutlinerSortFilterProxyModel::filterAcceptsRow(int sourceRow, const QModelI
|
|||||||
|
|
||||||
bool OutlinerSortFilterProxyModel::lessThan(const QModelIndex& leftIndex, const QModelIndex& rightIndex) const
|
bool OutlinerSortFilterProxyModel::lessThan(const QModelIndex& leftIndex, const QModelIndex& rightIndex) const
|
||||||
{
|
{
|
||||||
return sourceModel()->data(leftIndex).toString() < sourceModel()->data(rightIndex).toString();
|
if (leftIndex.isValid() && rightIndex.isValid())
|
||||||
|
{
|
||||||
|
QVariant leftData = sourceModel()->data(leftIndex);
|
||||||
|
QVariant rightData = sourceModel()->data(rightIndex);
|
||||||
|
|
||||||
|
// make sure to compare the correct data types for sorting the current column
|
||||||
|
AZ_Assert(leftData.type() == rightData.type(), "OutlinerSortFilterProxyModel::lessThan types do not agree!");
|
||||||
|
if (static_cast<QMetaType::Type>(leftData.type()) == QMetaType::QString)
|
||||||
|
{
|
||||||
|
return leftData.toString() < rightData.toString();
|
||||||
|
}
|
||||||
|
else if (static_cast<QMetaType::Type>(leftData.type()) == QMetaType::ULongLong)
|
||||||
|
{
|
||||||
|
return leftData.toULongLong() < rightData.toULongLong();
|
||||||
|
}
|
||||||
|
AZ_Error("Editor", false, "Error! Unhandled type \"%s\" in OutlinerSortFilterProxyModel::lessThan", leftData.typeName());
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void OutlinerSortFilterProxyModel::sort(int /*column*/, Qt::SortOrder /*order*/)
|
void OutlinerSortFilterProxyModel::sort(int /*column*/, Qt::SortOrder /*order*/)
|
||||||
|
|||||||
@@ -269,10 +269,12 @@ OutlinerWidget::OutlinerWidget(QWidget* pParent, Qt::WindowFlags flags)
|
|||||||
AzToolsFramework::ComponentModeFramework::EditorComponentModeNotificationBus::Handler::BusConnect(
|
AzToolsFramework::ComponentModeFramework::EditorComponentModeNotificationBus::Handler::BusConnect(
|
||||||
AzToolsFramework::GetEntityContextId());
|
AzToolsFramework::GetEntityContextId());
|
||||||
AzToolsFramework::EditorEntityInfoNotificationBus::Handler::BusConnect();
|
AzToolsFramework::EditorEntityInfoNotificationBus::Handler::BusConnect();
|
||||||
|
AzToolsFramework::EditorWindowUIRequestBus::Handler::BusConnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
OutlinerWidget::~OutlinerWidget()
|
OutlinerWidget::~OutlinerWidget()
|
||||||
{
|
{
|
||||||
|
AzToolsFramework::EditorWindowUIRequestBus::Handler::BusDisconnect();
|
||||||
AzToolsFramework::ComponentModeFramework::EditorComponentModeNotificationBus::Handler::BusDisconnect();
|
AzToolsFramework::ComponentModeFramework::EditorComponentModeNotificationBus::Handler::BusDisconnect();
|
||||||
AzToolsFramework::EditorEntityInfoNotificationBus::Handler::BusDisconnect();
|
AzToolsFramework::EditorEntityInfoNotificationBus::Handler::BusDisconnect();
|
||||||
AzToolsFramework::EditorPickModeNotificationBus::Handler::BusDisconnect();
|
AzToolsFramework::EditorPickModeNotificationBus::Handler::BusDisconnect();
|
||||||
@@ -1321,16 +1323,25 @@ static void SetEntityOutlinerState(Ui::OutlinerWidgetUI* entityOutlinerUi, const
|
|||||||
AzQtComponents::SetWidgetInteractEnabled(entityOutlinerUi->m_searchWidget, on);
|
AzQtComponents::SetWidgetInteractEnabled(entityOutlinerUi->m_searchWidget, on);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void OutlinerWidget::EnableUi(bool enable)
|
||||||
|
{
|
||||||
|
SetEntityOutlinerState(m_gui, enable);
|
||||||
|
setEnabled(enable);
|
||||||
|
}
|
||||||
|
|
||||||
|
void OutlinerWidget::SetEditorUiEnabled(bool enable)
|
||||||
|
{
|
||||||
|
EnableUi(enable);
|
||||||
|
}
|
||||||
|
|
||||||
void OutlinerWidget::EnteredComponentMode([[maybe_unused]] const AZStd::vector<AZ::Uuid>& componentModeTypes)
|
void OutlinerWidget::EnteredComponentMode([[maybe_unused]] const AZStd::vector<AZ::Uuid>& componentModeTypes)
|
||||||
{
|
{
|
||||||
SetEntityOutlinerState(m_gui, false);
|
EnableUi(false);
|
||||||
setEnabled(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OutlinerWidget::LeftComponentMode([[maybe_unused]] const AZStd::vector<AZ::Uuid>& componentModeTypes)
|
void OutlinerWidget::LeftComponentMode([[maybe_unused]] const AZStd::vector<AZ::Uuid>& componentModeTypes)
|
||||||
{
|
{
|
||||||
setEnabled(true);
|
EnableUi(true);
|
||||||
SetEntityOutlinerState(m_gui, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OutlinerWidget::OnSliceInstantiated(const AZ::Data::AssetId& /*sliceAssetId*/, AZ::SliceComponent::SliceInstanceAddress& sliceAddress, const AzFramework::SliceInstantiationTicket& /*ticket*/)
|
void OutlinerWidget::OnSliceInstantiated(const AZ::Data::AssetId& /*sliceAssetId*/, AZ::SliceComponent::SliceInstanceAddress& sliceAddress, const AzFramework::SliceInstantiationTicket& /*ticket*/)
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
#include <AzCore/Memory/SystemAllocator.h>
|
#include <AzCore/Memory/SystemAllocator.h>
|
||||||
#include <AzCore/base.h>
|
#include <AzCore/base.h>
|
||||||
|
#include <AzToolsFramework/API/EditorWindowRequestBus.h>
|
||||||
#include <AzToolsFramework/API/ToolsApplicationAPI.h>
|
#include <AzToolsFramework/API/ToolsApplicationAPI.h>
|
||||||
#include <AzToolsFramework/ComponentMode/EditorComponentModeBus.h>
|
#include <AzToolsFramework/ComponentMode/EditorComponentModeBus.h>
|
||||||
#include <AzToolsFramework/Entity/EditorEntityInfoBus.h>
|
#include <AzToolsFramework/Entity/EditorEntityInfoBus.h>
|
||||||
@@ -57,6 +58,7 @@ class OutlinerWidget
|
|||||||
, private AzToolsFramework::SliceEditorEntityOwnershipServiceNotificationBus::Handler
|
, private AzToolsFramework::SliceEditorEntityOwnershipServiceNotificationBus::Handler
|
||||||
, private AzToolsFramework::EditorEntityInfoNotificationBus::Handler
|
, private AzToolsFramework::EditorEntityInfoNotificationBus::Handler
|
||||||
, private AzToolsFramework::ComponentModeFramework::EditorComponentModeNotificationBus::Handler
|
, private AzToolsFramework::ComponentModeFramework::EditorComponentModeNotificationBus::Handler
|
||||||
|
, private AzToolsFramework::EditorWindowUIRequestBus::Handler
|
||||||
{
|
{
|
||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
public:
|
public:
|
||||||
@@ -106,6 +108,9 @@ private:
|
|||||||
void EnteredComponentMode(const AZStd::vector<AZ::Uuid>& componentModeTypes) override;
|
void EnteredComponentMode(const AZStd::vector<AZ::Uuid>& componentModeTypes) override;
|
||||||
void LeftComponentMode(const AZStd::vector<AZ::Uuid>& componentModeTypes) override;
|
void LeftComponentMode(const AZStd::vector<AZ::Uuid>& componentModeTypes) override;
|
||||||
|
|
||||||
|
// EditorWindowUIRequestBus overrides
|
||||||
|
void SetEditorUiEnabled(bool enable) override;
|
||||||
|
|
||||||
// Build a selection object from the given entities. Entities already in the Widget's selection buffers are ignored.
|
// Build a selection object from the given entities. Entities already in the Widget's selection buffers are ignored.
|
||||||
template <class EntityIdCollection>
|
template <class EntityIdCollection>
|
||||||
QItemSelection BuildSelectionFromEntities(const EntityIdCollection& entityIds);
|
QItemSelection BuildSelectionFromEntities(const EntityIdCollection& entityIds);
|
||||||
@@ -171,6 +176,7 @@ private:
|
|||||||
AZ::EntityId GetEntityIdFromIndex(const QModelIndex& index) const;
|
AZ::EntityId GetEntityIdFromIndex(const QModelIndex& index) const;
|
||||||
QModelIndex GetIndexFromEntityId(const AZ::EntityId& entityId) const;
|
QModelIndex GetIndexFromEntityId(const AZ::EntityId& entityId) const;
|
||||||
void ExtractEntityIdsFromSelection(const QItemSelection& selection, AzToolsFramework::EntityIdList& entityIdList) const;
|
void ExtractEntityIdsFromSelection(const QItemSelection& selection, AzToolsFramework::EntityIdList& entityIdList) const;
|
||||||
|
void EnableUi(bool enable);
|
||||||
|
|
||||||
// AzToolsFramework::OutlinerModelNotificationBus::Handler
|
// AzToolsFramework::OutlinerModelNotificationBus::Handler
|
||||||
// Receive notification from the outliner model that we should scroll
|
// Receive notification from the outliner model that we should scroll
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
; EditorCommon.def : Declares the module parameters for the DLL.
|
|
||||||
|
|
||||||
LIBRARY
|
|
||||||
|
|
||||||
EXPORTS
|
|
||||||
; Explicit exports can go here
|
|
||||||
Binary file not shown.
@@ -23,6 +23,7 @@ ly_add_target(
|
|||||||
.
|
.
|
||||||
BUILD_DEPENDENCIES
|
BUILD_DEPENDENCIES
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
3rdParty::Qt::Core
|
||||||
AZ::AzCore
|
AZ::AzCore
|
||||||
Legacy::CryCommon
|
Legacy::CryCommon
|
||||||
Legacy::EditorLib
|
Legacy::EditorLib
|
||||||
|
|||||||
@@ -17,19 +17,8 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#include <platform.h>
|
#include <platform.h>
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// STL
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
#include <vector>
|
|
||||||
#include <list>
|
|
||||||
#include <map>
|
|
||||||
#include <set>
|
|
||||||
#include <algorithm>
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// CRY Stuff ////////////////////////////////////////////////////////////////
|
// CRY Stuff ////////////////////////////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#include <ISystem.h>
|
#include <ISystem.h>
|
||||||
#include "Util/EditorUtils.h"
|
|
||||||
#include "EditorCoreAPI.h"
|
#include "EditorCoreAPI.h"
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ ly_add_target(
|
|||||||
.
|
.
|
||||||
BUILD_DEPENDENCIES
|
BUILD_DEPENDENCIES
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
3rdParty::Qt::Core
|
||||||
|
3rdParty::Qt::Widgets
|
||||||
AZ::AzCore
|
AZ::AzCore
|
||||||
Legacy::CryCommon
|
Legacy::CryCommon
|
||||||
Legacy::EditorLib
|
Legacy::EditorLib
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemDefinitionGroup>
|
|
||||||
<QtMOC>
|
|
||||||
<OutputFileName>%(RootDir)%(Directory)%(FileName).moc</OutputFileName>
|
|
||||||
<CommandLineTemplate>$(QTDIR)\bin\moc.exe [AllOptions] [Inputs]</CommandLineTemplate>
|
|
||||||
<ExecutionDescription>Moc'ing %(Filename)%(Extension)...</ExecutionDescription>
|
|
||||||
</QtMOC>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
</Project>
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<PropertyPageSchema
|
|
||||||
Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />
|
|
||||||
<AvailableItemName Include="QtMOC">
|
|
||||||
<Targets>_QtMOC</Targets>
|
|
||||||
</AvailableItemName>
|
|
||||||
</ItemGroup>
|
|
||||||
<UsingTask
|
|
||||||
TaskName="QtMOC"
|
|
||||||
TaskFactory="XamlTaskFactory"
|
|
||||||
AssemblyName="Microsoft.Build.Tasks.v4.0">
|
|
||||||
<Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
|
|
||||||
</UsingTask>
|
|
||||||
<Target
|
|
||||||
Name="_QtMOC"
|
|
||||||
BeforeTargets="ClCompile"
|
|
||||||
AfterTargets="CustomBuild"
|
|
||||||
Condition="'@(QtMOC)' != ''"
|
|
||||||
Outputs="%(QtMOC.OutputFileName)"
|
|
||||||
Inputs="%(QtMOC.Identity);$(MSBuildProjectFile)"
|
|
||||||
DependsOnTargets="_SelectedFiles">
|
|
||||||
<ItemGroup Condition="'@(SelectedFiles)' != ''">
|
|
||||||
<QtMOC Remove="@(QtMOC)" Condition="'%(Identity)' != '@(SelectedFiles)'" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<QtMOC_tlog Include="%(QtMOC.OutputFileName)" Condition="'%(QtMOC.OutputFileName)' != '' and '%(QtMOC.ExcludedFromBuild)' != 'true'">
|
|
||||||
<Source>@(QtMOC, '|')</Source>
|
|
||||||
</QtMOC_tlog>
|
|
||||||
</ItemGroup>
|
|
||||||
<Message
|
|
||||||
Importance="High"
|
|
||||||
Text="%(QtMOC.ExecutionDescription)" />
|
|
||||||
<WriteLinesToFile
|
|
||||||
Condition="'@(QtMOC_tlog)' != '' and '%(QtMOC_tlog.ExcludedFromBuild)' != 'true'"
|
|
||||||
File="$(IntDir)$(ProjectName).moc.1.tlog"
|
|
||||||
Lines="^%(QtMOC_tlog.Source);@(QtMOC_tlog->'%(Fullpath)')"/>
|
|
||||||
<QtMOC
|
|
||||||
Condition="'@(QtMOC)' != '' and '%(QtMOC.ExcludedFromBuild)' != 'true'"
|
|
||||||
CommandLineTemplate="%(QtMOC.CommandLineTemplate)"
|
|
||||||
OutputFileName="%(QtMOC.OutputFileName)"
|
|
||||||
AdditionalOptions="%(QtMOC.AdditionalOptions)"
|
|
||||||
Inputs="%(QtMOC.Fullpath)" />
|
|
||||||
</Target>
|
|
||||||
</Project>
|
|
||||||
@@ -1,74 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<ProjectSchemaDefinitions xmlns="http://schemas.microsoft.com/build/2009/properties" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib">
|
|
||||||
<Rule
|
|
||||||
Name="QtMOC"
|
|
||||||
PageTemplate="tool"
|
|
||||||
DisplayName="Qt MOC"
|
|
||||||
Order="200">
|
|
||||||
<Rule.DataSource>
|
|
||||||
<DataSource
|
|
||||||
Persistence="ProjectFile"
|
|
||||||
ItemType="QtMOC" />
|
|
||||||
</Rule.DataSource>
|
|
||||||
<Rule.Categories>
|
|
||||||
<Category
|
|
||||||
Name="General">
|
|
||||||
<Category.DisplayName>
|
|
||||||
<sys:String>General</sys:String>
|
|
||||||
</Category.DisplayName>
|
|
||||||
</Category>
|
|
||||||
<Category
|
|
||||||
Name="Command Line"
|
|
||||||
Subtype="CommandLine">
|
|
||||||
<Category.DisplayName>
|
|
||||||
<sys:String>Command Line</sys:String>
|
|
||||||
</Category.DisplayName>
|
|
||||||
</Category>
|
|
||||||
</Rule.Categories>
|
|
||||||
<StringProperty
|
|
||||||
Name="OutputFileName"
|
|
||||||
Category="General"
|
|
||||||
DisplayName="Output File Name"
|
|
||||||
Description="Specifies the name of the output file."
|
|
||||||
Switch="-o"[value]""/>
|
|
||||||
<StringProperty
|
|
||||||
Name="Inputs"
|
|
||||||
Category="Command Line"
|
|
||||||
IsRequired="true">
|
|
||||||
<StringProperty.DataSource>
|
|
||||||
<DataSource
|
|
||||||
Persistence="ProjectFile"
|
|
||||||
ItemType="QtMOC"
|
|
||||||
SourceType="Item" />
|
|
||||||
</StringProperty.DataSource>
|
|
||||||
</StringProperty>
|
|
||||||
<StringProperty
|
|
||||||
Name="CommandLineTemplate"
|
|
||||||
DisplayName="Command Line"
|
|
||||||
Visible="False"
|
|
||||||
IncludeInCommandLine="False" />
|
|
||||||
<StringProperty
|
|
||||||
Name="ExecutionDescription"
|
|
||||||
DisplayName="Execution Description"
|
|
||||||
IncludeInCommandLine="False"
|
|
||||||
Visible="False" />
|
|
||||||
<StringProperty
|
|
||||||
Subtype="AdditionalOptions"
|
|
||||||
Name="AdditionalOptions"
|
|
||||||
Category="Command Line">
|
|
||||||
<StringProperty.DisplayName>
|
|
||||||
<sys:String>Additional Options</sys:String>
|
|
||||||
</StringProperty.DisplayName>
|
|
||||||
<StringProperty.Description>
|
|
||||||
<sys:String>Additional Options</sys:String>
|
|
||||||
</StringProperty.Description>
|
|
||||||
</StringProperty>
|
|
||||||
</Rule>
|
|
||||||
<ItemType
|
|
||||||
Name="QtMOC"
|
|
||||||
DisplayName="Qt MOC" />
|
|
||||||
<ContentType
|
|
||||||
Name="QtMOC"
|
|
||||||
DisplayName="Qt MOC"
|
|
||||||
ItemType="QtMOC" />
|
|
||||||
</ProjectSchemaDefinitions>
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemDefinitionGroup>
|
|
||||||
<QtRCC>
|
|
||||||
<OutputFileName>%(RootDir)%(Directory)rcc_%(FileName).h</OutputFileName>
|
|
||||||
<CommandLineTemplate>$(QTDIR)\bin\rcc.exe [AllOptions] [Inputs]</CommandLineTemplate>
|
|
||||||
<ExecutionDescription>Rcc'ing %(Filename)%(Extension)...</ExecutionDescription>
|
|
||||||
</QtRCC>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
</Project>
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<PropertyPageSchema
|
|
||||||
Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />
|
|
||||||
<AvailableItemName Include="QtRCC">
|
|
||||||
<Targets>_QtRCC</Targets>
|
|
||||||
</AvailableItemName>
|
|
||||||
</ItemGroup>
|
|
||||||
<UsingTask
|
|
||||||
TaskName="QtRCC"
|
|
||||||
TaskFactory="XamlTaskFactory"
|
|
||||||
AssemblyName="Microsoft.Build.Tasks.v4.0">
|
|
||||||
<Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
|
|
||||||
</UsingTask>
|
|
||||||
<Target
|
|
||||||
Name="_QtRCC"
|
|
||||||
BeforeTargets="ClCompile"
|
|
||||||
AfterTargets="CustomBuild"
|
|
||||||
Condition="'@(QtRCC)' != ''"
|
|
||||||
Outputs="%(QtRCC.OutputFileName)"
|
|
||||||
Inputs="%(QtRCC.Identity);$(MSBuildProjectFile)"
|
|
||||||
DependsOnTargets="_SelectedFiles">
|
|
||||||
<ItemGroup Condition="'@(SelectedFiles)' != ''">
|
|
||||||
<QtRCC Remove="@(QtRCC)" Condition="'%(Identity)' != '@(SelectedFiles)'" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<QtRCC_tlog Include="%(QtRCC.OutputFileName)" Condition="'%(QtRCC.OutputFileName)' != '' and '%(QtRCC.ExcludedFromBuild)' != 'true'">
|
|
||||||
<Source>@(QtRCC, '|')</Source>
|
|
||||||
</QtRCC_tlog>
|
|
||||||
</ItemGroup>
|
|
||||||
<Message
|
|
||||||
Importance="High"
|
|
||||||
Text="%(QtRCC.ExecutionDescription)" />
|
|
||||||
<WriteLinesToFile
|
|
||||||
Condition="'@(QtRCC_tlog)' != '' and '%(QtRCC_tlog.ExcludedFromBuild)' != 'true'"
|
|
||||||
File="$(IntDir)$(ProjectName).rcc.1.tlog"
|
|
||||||
Lines="^%(QtRCC_tlog.Source);@(QtRCC_tlog->'%(Fullpath)')"/>
|
|
||||||
<QtRCC
|
|
||||||
Condition="'@(QtRCC)' != '' and '%(QtRCC.ExcludedFromBuild)' != 'true'"
|
|
||||||
CommandLineTemplate="%(QtRCC.CommandLineTemplate)"
|
|
||||||
OutputFileName="%(QtRCC.OutputFileName)"
|
|
||||||
AdditionalOptions="%(QtRCC.AdditionalOptions)"
|
|
||||||
Inputs="%(QtRCC.Fullpath)" />
|
|
||||||
</Target>
|
|
||||||
</Project>
|
|
||||||
@@ -1,74 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<ProjectSchemaDefinitions xmlns="http://schemas.microsoft.com/build/2009/properties" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib">
|
|
||||||
<Rule
|
|
||||||
Name="QtRCC"
|
|
||||||
PageTemplate="tool"
|
|
||||||
DisplayName="Qt RCC"
|
|
||||||
Order="200">
|
|
||||||
<Rule.DataSource>
|
|
||||||
<DataSource
|
|
||||||
Persistence="ProjectFile"
|
|
||||||
ItemType="QtRCC" />
|
|
||||||
</Rule.DataSource>
|
|
||||||
<Rule.Categories>
|
|
||||||
<Category
|
|
||||||
Name="General">
|
|
||||||
<Category.DisplayName>
|
|
||||||
<sys:String>General</sys:String>
|
|
||||||
</Category.DisplayName>
|
|
||||||
</Category>
|
|
||||||
<Category
|
|
||||||
Name="Command Line"
|
|
||||||
Subtype="CommandLine">
|
|
||||||
<Category.DisplayName>
|
|
||||||
<sys:String>Command Line</sys:String>
|
|
||||||
</Category.DisplayName>
|
|
||||||
</Category>
|
|
||||||
</Rule.Categories>
|
|
||||||
<StringProperty
|
|
||||||
Name="OutputFileName"
|
|
||||||
Category="General"
|
|
||||||
DisplayName="Output File Name"
|
|
||||||
Description="Specifies the name of the output file."
|
|
||||||
Switch="-o "[value]""/>
|
|
||||||
<StringProperty
|
|
||||||
Name="Inputs"
|
|
||||||
Category="Command Line"
|
|
||||||
IsRequired="true">
|
|
||||||
<StringProperty.DataSource>
|
|
||||||
<DataSource
|
|
||||||
Persistence="ProjectFile"
|
|
||||||
ItemType="QtRCC"
|
|
||||||
SourceType="Item" />
|
|
||||||
</StringProperty.DataSource>
|
|
||||||
</StringProperty>
|
|
||||||
<StringProperty
|
|
||||||
Name="CommandLineTemplate"
|
|
||||||
DisplayName="Command Line"
|
|
||||||
Visible="False"
|
|
||||||
IncludeInCommandLine="False" />
|
|
||||||
<StringProperty
|
|
||||||
Name="ExecutionDescription"
|
|
||||||
DisplayName="Execution Description"
|
|
||||||
IncludeInCommandLine="False"
|
|
||||||
Visible="False" />
|
|
||||||
<StringProperty
|
|
||||||
Subtype="AdditionalOptions"
|
|
||||||
Name="AdditionalOptions"
|
|
||||||
Category="Command Line">
|
|
||||||
<StringProperty.DisplayName>
|
|
||||||
<sys:String>Additional Options</sys:String>
|
|
||||||
</StringProperty.DisplayName>
|
|
||||||
<StringProperty.Description>
|
|
||||||
<sys:String>Additional Options</sys:String>
|
|
||||||
</StringProperty.Description>
|
|
||||||
</StringProperty>
|
|
||||||
</Rule>
|
|
||||||
<ItemType
|
|
||||||
Name="QtRCC"
|
|
||||||
DisplayName="Qt RCC" />
|
|
||||||
<ContentType
|
|
||||||
Name="QtRCC"
|
|
||||||
DisplayName="Qt RCC"
|
|
||||||
ItemType="QtRCC" />
|
|
||||||
</ProjectSchemaDefinitions>
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemDefinitionGroup>
|
|
||||||
<QtUIC>
|
|
||||||
<OutputFileName>%(RootDir)%(Directory)ui_%(FileName).h</OutputFileName>
|
|
||||||
<CommandLineTemplate>$(QTDIR)\bin\uic.exe [AllOptions] [Inputs]</CommandLineTemplate>
|
|
||||||
<ExecutionDescription>Uic'ing %(Filename)%(Extension)...</ExecutionDescription>
|
|
||||||
</QtUIC>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
</Project>
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<PropertyPageSchema
|
|
||||||
Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />
|
|
||||||
<AvailableItemName Include="QtUIC">
|
|
||||||
<Targets>_QtUIC</Targets>
|
|
||||||
</AvailableItemName>
|
|
||||||
</ItemGroup>
|
|
||||||
<UsingTask
|
|
||||||
TaskName="QtUIC"
|
|
||||||
TaskFactory="XamlTaskFactory"
|
|
||||||
AssemblyName="Microsoft.Build.Tasks.v4.0">
|
|
||||||
<Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
|
|
||||||
</UsingTask>
|
|
||||||
<Target
|
|
||||||
Name="_QtUIC"
|
|
||||||
BeforeTargets="ClCompile"
|
|
||||||
AfterTargets="CustomBuild"
|
|
||||||
Condition="'@(QtUIC)' != ''"
|
|
||||||
Outputs="%(QtUIC.OutputFileName)"
|
|
||||||
Inputs="%(QtUIC.Identity);$(MSBuildProjectFile)"
|
|
||||||
DependsOnTargets="_SelectedFiles">
|
|
||||||
<ItemGroup Condition="'@(SelectedFiles)' != ''">
|
|
||||||
<QtUIC Remove="@(QtUIC)" Condition="'%(Identity)' != '@(SelectedFiles)'" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<QtUIC_tlog Include="%(QtUIC.OutputFileName)" Condition="'%(QtUIC.OutputFileName)' != '' and '%(QtUIC.ExcludedFromBuild)' != 'true'">
|
|
||||||
<Source>@(QtUIC, '|')</Source>
|
|
||||||
</QtUIC_tlog>
|
|
||||||
</ItemGroup>
|
|
||||||
<Message
|
|
||||||
Importance="High"
|
|
||||||
Text="%(QtUIC.ExecutionDescription)" />
|
|
||||||
<WriteLinesToFile
|
|
||||||
Condition="'@(QtUIC_tlog)' != '' and '%(QtUIC_tlog.ExcludedFromBuild)' != 'true'"
|
|
||||||
File="$(IntDir)$(ProjectName).uic.1.tlog"
|
|
||||||
Lines="^%(QtUIC_tlog.Source);@(QtUIC_tlog->'%(Fullpath)')"/>
|
|
||||||
<QtUIC
|
|
||||||
Condition="'@(QtUIC)' != '' and '%(QtUIC.ExcludedFromBuild)' != 'true'"
|
|
||||||
CommandLineTemplate="%(QtUIC.CommandLineTemplate)"
|
|
||||||
OutputFileName="%(QtUIC.OutputFileName)"
|
|
||||||
AdditionalOptions="%(QtUIC.AdditionalOptions)"
|
|
||||||
Inputs="%(QtUIC.Fullpath)" /> <!-- CRC TODO: Should use identity instead? Inputs="%(QtUIC.Identity)" /> -->
|
|
||||||
|
|
||||||
</Target>
|
|
||||||
</Project>
|
|
||||||
@@ -1,74 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<ProjectSchemaDefinitions xmlns="http://schemas.microsoft.com/build/2009/properties" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib">
|
|
||||||
<Rule
|
|
||||||
Name="QtUIC"
|
|
||||||
PageTemplate="tool"
|
|
||||||
DisplayName="Qt UIC"
|
|
||||||
Order="200">
|
|
||||||
<Rule.DataSource>
|
|
||||||
<DataSource
|
|
||||||
Persistence="ProjectFile"
|
|
||||||
ItemType="QtUIC" />
|
|
||||||
</Rule.DataSource>
|
|
||||||
<Rule.Categories>
|
|
||||||
<Category
|
|
||||||
Name="General">
|
|
||||||
<Category.DisplayName>
|
|
||||||
<sys:String>General</sys:String>
|
|
||||||
</Category.DisplayName>
|
|
||||||
</Category>
|
|
||||||
<Category
|
|
||||||
Name="Command Line"
|
|
||||||
Subtype="CommandLine">
|
|
||||||
<Category.DisplayName>
|
|
||||||
<sys:String>Command Line</sys:String>
|
|
||||||
</Category.DisplayName>
|
|
||||||
</Category>
|
|
||||||
</Rule.Categories>
|
|
||||||
<StringProperty
|
|
||||||
Name="OutputFileName"
|
|
||||||
Category="General"
|
|
||||||
DisplayName="Output File Name"
|
|
||||||
Description="Specifies the name of the output file."
|
|
||||||
Switch="-o "[value]""/>
|
|
||||||
<StringProperty
|
|
||||||
Name="Inputs"
|
|
||||||
Category="Command Line"
|
|
||||||
IsRequired="true">
|
|
||||||
<StringProperty.DataSource>
|
|
||||||
<DataSource
|
|
||||||
Persistence="ProjectFile"
|
|
||||||
ItemType="QtUIC"
|
|
||||||
SourceType="Item" />
|
|
||||||
</StringProperty.DataSource>
|
|
||||||
</StringProperty>
|
|
||||||
<StringProperty
|
|
||||||
Name="CommandLineTemplate"
|
|
||||||
DisplayName="Command Line"
|
|
||||||
Visible="False"
|
|
||||||
IncludeInCommandLine="False" />
|
|
||||||
<StringProperty
|
|
||||||
Name="ExecutionDescription"
|
|
||||||
DisplayName="Execution Description"
|
|
||||||
IncludeInCommandLine="False"
|
|
||||||
Visible="False" />
|
|
||||||
<StringProperty
|
|
||||||
Subtype="AdditionalOptions"
|
|
||||||
Name="AdditionalOptions"
|
|
||||||
Category="Command Line">
|
|
||||||
<StringProperty.DisplayName>
|
|
||||||
<sys:String>Additional Options</sys:String>
|
|
||||||
</StringProperty.DisplayName>
|
|
||||||
<StringProperty.Description>
|
|
||||||
<sys:String>Additional Options</sys:String>
|
|
||||||
</StringProperty.Description>
|
|
||||||
</StringProperty>
|
|
||||||
</Rule>
|
|
||||||
<ItemType
|
|
||||||
Name="QtUIC"
|
|
||||||
DisplayName="Qt UIC" />
|
|
||||||
<ContentType
|
|
||||||
Name="QtUIC"
|
|
||||||
DisplayName="Qt UIC"
|
|
||||||
ItemType="QtUIC" />
|
|
||||||
</ProjectSchemaDefinitions>
|
|
||||||
@@ -525,6 +525,7 @@ QtViewPaneManager::QtViewPaneManager(QObject* parent)
|
|||||||
|
|
||||||
// view pane manager is interested when we enter/exit ComponentMode
|
// view pane manager is interested when we enter/exit ComponentMode
|
||||||
m_componentModeNotifications.BusConnect(AzToolsFramework::GetEntityContextId());
|
m_componentModeNotifications.BusConnect(AzToolsFramework::GetEntityContextId());
|
||||||
|
m_windowRequest.BusConnect();
|
||||||
|
|
||||||
m_componentModeNotifications.SetEnteredComponentModeFunc(
|
m_componentModeNotifications.SetEnteredComponentModeFunc(
|
||||||
[this](const AZStd::vector<AZ::Uuid>& /*componentModeTypes*/)
|
[this](const AZStd::vector<AZ::Uuid>& /*componentModeTypes*/)
|
||||||
@@ -545,10 +546,23 @@ QtViewPaneManager::QtViewPaneManager(QObject* parent)
|
|||||||
AzQtComponents::SetWidgetInteractEnabled(widget, on);
|
AzQtComponents::SetWidgetInteractEnabled(widget, on);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
m_windowRequest.SetEnableEditorUiFunc(
|
||||||
|
[this](bool enable)
|
||||||
|
{
|
||||||
|
// gray out panels when entering ImGui mode
|
||||||
|
SetDefaultActionsEnabled(
|
||||||
|
enable, m_registeredPanes,
|
||||||
|
[](QWidget* widget, bool on)
|
||||||
|
{
|
||||||
|
AzQtComponents::SetWidgetInteractEnabled(widget, on);
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
QtViewPaneManager::~QtViewPaneManager()
|
QtViewPaneManager::~QtViewPaneManager()
|
||||||
{
|
{
|
||||||
|
m_windowRequest.BusDisconnect();
|
||||||
m_componentModeNotifications.BusDisconnect();
|
m_componentModeNotifications.BusDisconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
#include <AzQtComponents/Components/StyledDockWidget.h>
|
#include <AzQtComponents/Components/StyledDockWidget.h>
|
||||||
#include <AzToolsFramework/UI/PropertyEditor/PropertyEditorAPI.h>
|
#include <AzToolsFramework/UI/PropertyEditor/PropertyEditorAPI.h>
|
||||||
#include <AzToolsFramework/ComponentMode/EditorComponentModeBus.h>
|
#include <AzToolsFramework/ComponentMode/EditorComponentModeBus.h>
|
||||||
|
#include <AzToolsFramework/API/EditorWindowRequestBus.h>
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QVector>
|
#include <QVector>
|
||||||
@@ -249,8 +250,12 @@ private:
|
|||||||
QPointer<AzQtComponents::FancyDocking> m_advancedDockManager;
|
QPointer<AzQtComponents::FancyDocking> m_advancedDockManager;
|
||||||
|
|
||||||
using EditorComponentModeNotificationBusImpl = AzToolsFramework::ComponentModeFramework::EditorComponentModeNotificationBusImpl;
|
using EditorComponentModeNotificationBusImpl = AzToolsFramework::ComponentModeFramework::EditorComponentModeNotificationBusImpl;
|
||||||
EditorComponentModeNotificationBusImpl m_componentModeNotifications; /**< Helper for EditorComponentModeNotificationBus so
|
EditorComponentModeNotificationBusImpl m_componentModeNotifications; //!< Helper for EditorComponentModeNotificationBus so
|
||||||
* QtViewPaneManager does not need to inherit directly from it. */
|
//!< QtViewPaneManager does not need to inherit directly from it. */
|
||||||
|
|
||||||
|
using EditorWindowRequestBusImpl = AzToolsFramework::EditorWindowRequestBusImpl;
|
||||||
|
EditorWindowRequestBusImpl m_windowRequest; //!< Helper for EditorWindowRequestBus so
|
||||||
|
//!< QtViewPaneManager does not need to inherit directly from it. */
|
||||||
AZ_POP_DISABLE_DLL_EXPORT_MEMBER_WARNING
|
AZ_POP_DISABLE_DLL_EXPORT_MEMBER_WARNING
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -219,6 +219,7 @@ public:
|
|||||||
void SetFullScreenState(bool fullScreenState) override;
|
void SetFullScreenState(bool fullScreenState) override;
|
||||||
bool CanToggleFullScreenState() const override;
|
bool CanToggleFullScreenState() const override;
|
||||||
void ToggleFullScreenState() override;
|
void ToggleFullScreenState() override;
|
||||||
|
float GetDpiScaleFactor() const override { return 1.0f; };
|
||||||
|
|
||||||
void ConnectViewportInteractionRequestBus();
|
void ConnectViewportInteractionRequestBus();
|
||||||
void DisconnectViewportInteractionRequestBus();
|
void DisconnectViewportInteractionRequestBus();
|
||||||
|
|||||||
@@ -36,11 +36,11 @@ CStartupLogoDialog::CStartupLogoDialog(QString versionText, QString richTextCopy
|
|||||||
|
|
||||||
s_pLogoWindow = this;
|
s_pLogoWindow = this;
|
||||||
|
|
||||||
m_backgroundImage = QPixmap(QStringLiteral(":/StartupLogoDialog/splashscreen_background_gradient.jpg"));
|
m_backgroundImage = QPixmap(QStringLiteral(":/StartupLogoDialog/splashscreen_background_developer_preview.jpg"));
|
||||||
setFixedSize(QSize(600, 300));
|
setFixedSize(QSize(600, 300));
|
||||||
|
|
||||||
// Prepare background image
|
// Prepare background image
|
||||||
QImage backgroundImage(QStringLiteral(":/StartupLogoDialog/splashscreen_background_gradient.jpg"));
|
QImage backgroundImage(QStringLiteral(":/StartupLogoDialog/splashscreen_background_developer_preview.jpg"));
|
||||||
m_backgroundImage = QPixmap::fromImage(backgroundImage.scaled(m_enforcedWidth, m_enforcedHeight, Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
|
m_backgroundImage = QPixmap::fromImage(backgroundImage.scaled(m_enforcedWidth, m_enforcedHeight, Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
|
||||||
|
|
||||||
// Draw the Open 3D Engine logo from svg
|
// Draw the Open 3D Engine logo from svg
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/StartupLogoDialog">
|
<qresource prefix="/StartupLogoDialog">
|
||||||
<file>o3de_logo.svg</file>
|
<file>o3de_logo.svg</file>
|
||||||
<file>splashscreen_background_gradient.jpg</file>
|
<file>splashscreen_background_developer_preview.jpg</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ namespace TrackView
|
|||||||
bool startedCapture = false;
|
bool startedCapture = false;
|
||||||
AZ::Render::FrameCaptureRequestBus::BroadcastResult(
|
AZ::Render::FrameCaptureRequestBus::BroadcastResult(
|
||||||
startedCapture, &AZ::Render::FrameCaptureRequestBus::Events::CapturePassAttachmentWithCallback, m_passHierarchy,
|
startedCapture, &AZ::Render::FrameCaptureRequestBus::Events::CapturePassAttachmentWithCallback, m_passHierarchy,
|
||||||
AZStd::string("Output"), attachmentReadbackCallback);
|
AZStd::string("Output"), attachmentReadbackCallback, AZ::RPI::PassAttachmentReadbackOption::Output);
|
||||||
|
|
||||||
return startedCapture;
|
return startedCapture;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
#include "SequenceBatchRenderDialog.h"
|
#include "SequenceBatchRenderDialog.h"
|
||||||
|
|
||||||
|
#include <AzCore/Component/ComponentApplication.h>
|
||||||
#include <AzFramework/Windowing/WindowBus.h>
|
#include <AzFramework/Windowing/WindowBus.h>
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
@@ -1215,6 +1216,18 @@ void CSequenceBatchRenderDialog::OnKickIdleTimout()
|
|||||||
// All done with our custom OnKickIdle, restore editor idle.
|
// All done with our custom OnKickIdle, restore editor idle.
|
||||||
SetEnableEditorIdleProcessing(true);
|
SetEnableEditorIdleProcessing(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//When we disable the editor idle processing. system tick is no longer invoked.
|
||||||
|
//so we call it here to ensure rendering + other systems are updated.
|
||||||
|
if (!m_editorIdleProcessingEnabled)
|
||||||
|
{
|
||||||
|
AZ::ComponentApplication* componentApplication = nullptr;
|
||||||
|
AZ::ComponentApplicationBus::BroadcastResult(componentApplication, &AZ::ComponentApplicationRequests::GetApplication);
|
||||||
|
if (componentApplication)
|
||||||
|
{
|
||||||
|
componentApplication->TickSystem();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSequenceBatchRenderDialog::OnKickIdle()
|
void CSequenceBatchRenderDialog::OnKickIdle()
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user