Skip to content

Commit f53316e

Browse files
committed
Merge branch 'dev' into release
2 parents 3ea269f + 4dcff5f commit f53316e

25 files changed

+15188
-3153
lines changed

CHANGELOG.md

+41-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,38 @@
1+
## [1.2.0] - 2023-05-12
2+
3+
### Build
4+
5+
- BIFROST-8086 - fix unit test errors
6+
7+
### Feature
8+
9+
- BIFROST 8452 - Add color support to the _read_usd_curve_ and improve _define_usd_curves_ UI
10+
- Add option in _read_usd_curves_ to import _displayColor_ attribute as _point_color_ geo property.
11+
- Add Combo Box in _define_usd_curves_ to set basis and type parameters.
12+
13+
- BIFROST-8452 - Add option in _read_usd_meshes_ to import _displayColor_ attribute as _point_color_ geo property
14+
15+
- BIFROST-6771 - Add soft min-max sliders and color pickers widgets in following compounds
16+
- _define_usd_display_color_
17+
- _define_usd_point_instancer_
18+
- _define_usd_preview_surface_
19+
- _define_usd_transform_
20+
- _duplicate_usd_prim_definition_
21+
22+
- BIFROST-8319 - Add _get_authored_attribute_names_ node, to get all authored attributes names
23+
24+
- BIFROST-8100 - Add _get_all_attribute_names_ node, to get all prim attributes names
25+
26+
### Bugfix
27+
28+
- BIFROST-8426 - Inconsistent UI in define_usd_prim
29+
30+
- BIFROST-8273 - fix sublayers not saved if relative_path is on
31+
- Use the layer's save file path (m_filePath) instead of the sdfLayerIdentifier in the recursive call to Layer::exportToFile().
32+
- Add new more complete unit test for export_layer_to_file() that covers multiple cases for relative and absolute paths to sublayers.
33+
- removed call to changeDir() that has side effect and is not required anymore for unit tests.
34+
35+
136
## [1.1.0] - 2023-03-29
237

338
### Build
@@ -13,12 +48,15 @@
1348
### Feature
1449

1550
- BIFROST-7955 - Add applied schema nodes
16-
- add_applied_schema: This node adds the applied API schema name to the apiSchema metadata of the prim
17-
- remove_applied_schema: This node removes the applied API schema name from the apiSchema metadata of the prim
51+
- add_applied_schema: This node adds the applied API schema name to the apiSchema metadata of the prim
52+
- remove_applied_schema: This node removes the applied API schema name from the apiSchema metadata of the prim
1853

1954

2055
### Bugfix
2156

2257
## [1.0.0] - 2022-12-12
2358

24-
Initial release
59+
- Initial release
60+
- 2022-12-12
61+
62+
- Initial release

cmake/version.info

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# This file has been auto-generated.
22

33
set(BIFROST_USD_PACK_MAJOR_VERSION 1)
4-
set(BIFROST_USD_PACK_MINOR_VERSION 1)
4+
5+
set(BIFROST_USD_PACK_MINOR_VERSION 2)
6+
57
set(BIFROST_USD_PACK_PATCH_LEVEL 0)

src/BifrostUsd/Layer.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//-
2-
// Copyright 2022 Autodesk, Inc.
2+
// Copyright 2023 Autodesk, Inc.
33
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
@@ -384,27 +384,27 @@ bool Layer::exportToFile(const Amino::String& filePath,
384384
// Replace anonymous sublayer identifier by real layer file path
385385
for (int i = 0; i < static_cast<int>(m_subLayers.size()); ++i) {
386386
const auto& layer = m_subLayers[i];
387-
Amino::String layerPath = layer.m_filePath.empty() ?
387+
Amino::String sdfLayerIdentifier = layer.m_filePath.empty() ?
388388
layer.m_originalFilePath : layer.m_filePath;
389389
if (relativePath) {
390390
Amino::String relPath = "";
391391
if (Bifrost::FileUtils::getRelativePath(
392-
layerPath,
392+
sdfLayerIdentifier,
393393
Bifrost::FileUtils::extractParentPath(outFilePath.c_str())
394394
.c_str(),
395395
relPath)) {
396-
layerPath = relPath;
397-
std::replace(layerPath.begin(), layerPath.end(), '\\', '/');
396+
sdfLayerIdentifier = relPath;
397+
std::replace(sdfLayerIdentifier.begin(), sdfLayerIdentifier.end(), '\\', '/');
398398
}
399399
}
400-
if (layerPath.empty()) {
400+
if (sdfLayerIdentifier.empty()) {
401401
return false;
402402
}
403403

404-
layer.exportToFile(layerPath, relativePath);
404+
layer.exportToFile(layer.m_filePath, relativePath);
405405

406406
outLayer->RemoveSubLayerPath(i);
407-
outLayer->InsertSubLayerPath(layerPath.c_str(), i);
407+
outLayer->InsertSubLayerPath(sdfLayerIdentifier.c_str(), i);
408408
}
409409

410410
return outLayer->Save();

0 commit comments

Comments
 (0)